How to print the graph on multiple pages
Questions & AnswersSummary
Description
The class CanvasPrinter offers a number of options to print the graph. By setting its hPages and vPages properties to values > 1 it's possible to print the graph on multiple pages.
Further customizations are possible by subclassing CanvasPrinter. Overriding the methods drawPageBackground() or drawPageForeground(), for example, allow to draw a background or additional information in the foreground, respectively.
More information can be found in the Developer's Guide
For further customizations or for using a custom printing framework it is possible to create a sprite from the graph. This sprite can be printed using the custom printing framework (or the Flex printing framework).
The yFiles FLEX CanvasComponent offers a method createSprite() that creates a sprite containing all objects currently drawn on the canvas.
Using a flash.printing.PrintJob to print the created sprite, you have full control over the printing process.
- The API documentation for
flash.printing.PrintJob - The API documentation for
flash.printing.PrintJobOptions