The print manager can print a document in multiple pages (if the document is not small enough to fit in a single page). If the document cannot fit in one page you can also instruct it to print the entire document on a single page. Whether or not the document is printed on a single page is controlled by the PrintOnSinglePage property. Since the document must be scaled in order to fit to the page you can also modify the SinglePageLayout property to instruct the manager what type of canvas layout it must use.
For example:
C# |
Copy Code
|
---|---|
// print the document on multiple pages without rescaling printManager.PrintOnSinglePage = false; printManager.Print(); // print the document on a single page, by fitting it in the print margins printManager.PrintOnSinglePage = true; printManager.SinglePageLayout = CanvasLayout.Fit; printManager.Print(); |
Visual Basic |
Copy Code
|
---|---|
' print the document on multiple pages without rescaling printManager.PrintOnSinglePage = False printManager.Print() ' print the document on a single page, by fitting it in the print margins printManager.PrintOnSinglePage = True printManager.SinglePageLayout = CanvasLayout.Fit printManager.Print() |