FOP 0.20.5


                                                                                
                                                       
                      "Hassan Mushtaq"                                          
                                                       
                      <[EMAIL PROTECTED]        To:       <[EMAIL PROTECTED]>   
                                                  
                      hg.com>                  cc:                              
                                                       
                                               Subject:  RE: Printing using FOP 
                                                       
                      02/14/2005 12:00                                          
                                                       
                      PM                                                        
                                                       
                      Please respond to                                         
                                                       
                      fop-user                                                  
                                                       
                                                                                
                                                       
                                                                                
                                                       




Hi Manoj, what version of FOP you are using? Thanks.

Hassan Mushtaq



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Printing using FOP


Thats possible ! This setup has worked for me...





                      "Hassan Mushtaq"
                      <[EMAIL PROTECTED]        To:
<[EMAIL PROTECTED]>
                      hg.com>                  cc:
                                               Subject:  RE: Printing using
FOP
                      02/14/2005 11:43
                      AM
                      Please respond to
                      fop-user






Hi Manoj,
         Thanks for taking interest. PrintRenderer in FOP 0.20.5 (latest)
is
an abstract class. And I did see the solution you mentioned was suggested
by
someone else in mailing archives, and he/she was saying it worked for them.
So I can not help but speculating that previous versions of FOP perhaps did
not have PrintRenderer as abstract class? Thanks.

Hassan Mushtaq


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing using FOP


You should be using a PrintRenderer ( extended from AWRenderer) ..something
like the following

    org.apache.fop.apps.XSLTInputHandler input =
            new org.apache.fop.apps.XSLTInputHandler(xml,xsl );

        PrinterJob pj = new PrinterJob();
        PrintRenderer renderer = new PrintRenderer(pj);
        Driver driver = new Driver();
        driver.setLogger (log);
        driver.setRenderer (renderer);
        driver.render(input.getParser(), input.getInputSource());

Let me know
Manoj




                      "Hassan Mushtaq"
                      <[EMAIL PROTECTED]        To:
<[EMAIL PROTECTED]>
                      hg.com>                  cc:
                                               Subject:  Printing using FOP
                      02/14/2005 10:58
                      AM
                      Please respond to
                      fop-user






Hi:
   I can not simply print using FOP. I first tried FopPrintServlet, it gave
IllegalArgument Exception, and I checked API, and found out that
setRenderer
does not RENDRER_PRINT in as its parameter. Then I went through mailing
list
archives, and some body suggested to use PrinterJob, and then instantiate
AWTRendrer with that. But the problem is that AWTRenderer is expecting
Translator, not printer job.

Anyway, I am using FOP 0.20.5, so kindly can someone tell me how to do
direct print using FOP? Thanks

Hassan Mushtaq



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to