skip to main content
Charts > Programmer's documentation > The generic printing framework > The printing framework > The PrintableDocument class
 
The PrintableDocument class
The IlvPrintableDocument class is the top-level class of the document model. It is designed as a page holder to which you can add pages defined by the IlvPage class.
There are two ways to fill a document:
*Simply create pages ( IlvPage class) and add them to the document using the addPage and removePage methods.
*Associate an IlvFlow object with the document.
The IlvFlow object allows you to add styled text to a document; if you decide to use an IlvFlow object, it will create and manage the pages of the document for you depending on the text, the alignments, and the styling properties that you specify in the IlvFlow object.
Later in this topic you will see how to associate an IlvFlow object with a document.
NOTE Some Rogue Wave® JViews packages provide subclasses of the IlvPrintableDocument class that manage the pages for you. For example, Rogue Wave JViews Gantt provides a subclass that can automatically create its pages to display a chart in multiple pages. For more information see the Rogue Wave JViews Gantt documentation.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.