You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lance Goforth <la...@arn.net> on 2007/05/02 00:33:50 UTC

Re: FOP AWTRenderer Printing issue

I have now upgraded to fop 0.93.  However I still have the same issue with some
of our customers printing half or 1/3 of the print on one page.  It has to be a
memory issue, but I'm at a lost to know how to fix it. 

Any suggestions?



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP AWTRenderer Printing issue

Posted by Lance Goforth <la...@arn.net>.
No, unfortuately it is only a problem on the terminal server, and yes I agree
it's very hard to find issues like this.

I am calling the print dialog so the printer can be selected.  This is the full
method.

    public void print() {
        PrinterJob pj = PrinterJob.getPrinterJob();

        PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
        
        SimpleDoc doc = new SimpleDoc(renderer,
               DocFlavor.SERVICE_FORMATTED.PAGEABLE, null);

        if (pj.printDialog(aset)) {
            try {
            	PrintService ps = pj.getPrintService();
            	DocPrintJob dpj = ps.createPrintJob();
                dpj.print(doc, aset);
            } catch (PrintException pe) {
                pe.printStackTrace();                
            }
        }
    }

I can try generating the pcl or ps output, but I was concerned that some
printers might not support that.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP AWTRenderer Printing issue

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 02.05.2007 18:36:32 Lance Goforth wrote:
> The problem shows up on our terminal server - running windows server 2003 R2
> enterprise.

But not on a developer machine with a similar setup?

> The jvm is Sun java 1.5.0.08.
> 
> The printers vary - we have several clients, there are around 75 different
> printers, most are HP laserjets.
> 
> I'm not sure what you mean by the printer driver, I've been using the print
> method from the fop awt viewer program.  It uses:
>  
>       SimpleDoc doc = new SimpleDoc(renderer,
>                         DocFlavor.SERVICE_FORMATTED.PAGEABLE, null);

So you're probably just printing to the default printer. So with printer
driver, I'm wondering if you're using a PCL or PostScript printer driver
to print to the printer. Some printers support several printer formats,
especially the bigger network-connected ones. What you could try is to
check if it gets better if you switch to a different printer driver (if
you're on PCL, switch to PostScript).

> The renderer is the AWTRenderer used to display the report prior to viewing.


It's generally a little difficult to reproduce problems like these in
different environments. I can't promise that I can find out anything,
but I'll see if I can.

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP AWTRenderer Printing issue

Posted by Lance Goforth <la...@arn.net>.
The problem shows up on our terminal server - running windows server 2003 R2
enterprise.

The jvm is Sun java 1.5.0.08.

The printers vary - we have several clients, there are around 75 different
printers, most are HP laserjets.

I'm not sure what you mean by the printer driver, I've been using the print
method from the fop awt viewer program.  It uses:
 
      SimpleDoc doc = new SimpleDoc(renderer,
                        DocFlavor.SERVICE_FORMATTED.PAGEABLE, null);

The renderer is the AWTRenderer used to display the report prior to viewing.







---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP AWTRenderer Printing issue

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Hmm, can you please give me a little more information?
- Operating System
- Java version and brand
- Printer Model
- Printer language generated by the printer driver you use (PCL,
PostScript, GDI etc...)

Maybe I can then try to reproduce your problem.

On 02.05.2007 00:33:50 Lance Goforth wrote:
> I have now upgraded to fop 0.93.  However I still have the same issue with some
> of our customers printing half or 1/3 of the print on one page.  It has to be a
> memory issue, but I'm at a lost to know how to fix it. 
> 
> Any suggestions?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org