IlvDiagrammer.printToBitmap() method does not print all nodes in the diagram

Article ID: 2312
Last updated: 29 May, 2018
Article ID: 2312
Last updated: 29 May, 2018
Revision: 3
Views: 631
Posted: 18 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

Why my nodes, that are outside the visible view, are not printed in the IlvDiagrammer.printToBitmap() method?

Answer

The IlvDiagrammer.printToBitmap prints the diagram component to a bitmap file, according to the page setup parameters and the print area. If the print area is the size of the reference view, any nodes that are outside the main view will not be printed out.

You can control the print area using theIlvManagerPrintableDocument.setPrintArea(IlvRect) method. 

To ensure that all nodes in the diagram (within the visible area or not) will be printed out, you need to reset the printed area to null.

IlvManagerPrintingController printControler = diagrammer.getPrintingController();

IlvManagerPrintableDocument document = (IlvManagerPrintableDocument)printControler.getDocument();

document.setPrintArea(null);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2312
Last updated: 29 May, 2018
Revision: 3
Views: 631
Posted: 18 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category