Messages posted by dmaass
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Messages posted by: dmaass  XML
Profile for dmaass -> Messages posted by dmaass [3]
Author Message
When I select "all" as Print Range in print dialog the print progress dialog shows a total number of Integer.MAX_VALUE.

Is this a known problem?

The attached patch helped me. But, has someone a better solution? ( could be better to check this during the iteration over page ranges )

Regards,
Dirk
Thank you for your quick reply!

Why not simply use the attributes of an already existing PrintHelper as in the proposed patch? I thought this was intended by the writer of (SwingController#initialisePrinting)
Code:
 PrintHelper printHelper = viewModel.getPrintHelper();
 

and the error is at the next line
Code:
 printHelper = new PrintHelper(documentViewController, getPageTree());
 

??
Hi,
maybe this issue was solved elsewhere, so ignore it if it isn't of interest..

When i used the SwingController to display a document the printer dialog always used the letter page size as default when i pressed the print button. I wanted to change this beavior using the following
Code:
       SwingController controller;
           ... // some initialization incl. call controller.openDocument(...)
       controller.getViewModel().setPrintHelper(
           new PrintHelper( controller.getDocumentViewController(), controller
               .getDocument().getPageTree(), MediaSizeName.ISO_A4,
               PrintQuality.NORMAL ) );
 

This did not help. The reason is, that the printHelper is always overwritten in SwingController#initialisePrinting(...).

The attached patch helped me. Should i file a bug?
 
Profile for dmaass -> Messages posted by dmaass [3]
Go to:   
Powered by JForum 2.1.7ice © JForum Team