Rendering to a printer
Hello: I have made a simple function to test fop: void print(String file){ try{ Driver driver = new Driver(); driver.setInputSource(new InputSource(file)); driver.setRenderer(Driver.RENDER_PDF); driver.run(); }catch(Exception e){ e.printStackTrace(System.out); } } It works but I would like to render to the printer (RENDER_PRINT), but I haven't seen any samples for this anywhere. Could somebody show me how to do this? Faw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Rendering to a printer
There was a discussion about this a while back (maybe a month or so). You may want to check the archives. In general, how to do it depends on what your printer can accept and what environment you are running in. FWIW, there have been some favorable comments about the PS renderer - so if your printer accepts PostScript this may be a good option. -Original Message- From: Spectron Caribe, Inc. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 10:10 AM To: [EMAIL PROTECTED] Subject: Rendering to a printer Hello: I have made a simple function to test fop: void print(String file){ try{ Driver driver = new Driver(); driver.setInputSource(new InputSource(file)); driver.setRenderer(Driver.RENDER_PDF); driver.run(); }catch(Exception e){ e.printStackTrace(System.out); } } It works but I would like to render to the printer (RENDER_PRINT), but I haven't seen any samples for this anywhere. Could somebody show me how to do this? Faw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Rendering to a printer
Forget it, I wasn't looking hard enough. But I have another question. If I understand correctly a block is a paragraph and I cant have different styles in a paragraph. I cant have a paragraph in 'Helvetica plain' and have a word in 'Helvetica bold size 20' like in HTML. If I'm wrong please correct me and tel me how to do it. Faw - Original Message - From: "Spectron Caribe, Inc." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 10:09 AM Subject: Rendering to a printer > Hello: > > I have made a simple function to test fop: > > void print(String file){ > try{ > Driver driver = new Driver(); > driver.setInputSource(new InputSource(file)); > driver.setRenderer(Driver.RENDER_PDF); > driver.run(); > }catch(Exception e){ > e.printStackTrace(System.out); > } > } > > It works but I would like to render to the printer (RENDER_PRINT), but I > haven't seen any samples for this anywhere. Could somebody show me how to do > this? > > Faw > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Rendering to a printer
You can try something like: HELLO THERE!!! -Lou "Spectron Caribe, Inc." <[EMAIL PROTECTED]> on 08/15/2001 10:44:14 AM Please respond to [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> cc: Subject: Re: Rendering to a printer Forget it, I wasn't looking hard enough. But I have another question. If I understand correctly a block is a paragraph and I cant have different styles in a paragraph. I cant have a paragraph in 'Helvetica plain' and have a word in 'Helvetica bold size 20' like in HTML. If I'm wrong please correct me and tel me how to do it. Faw - Original Message - From: "Spectron Caribe, Inc." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 10:09 AM Subject: Rendering to a printer > Hello: > > I have made a simple function to test fop: > > void print(String file){ > try{ > Driver driver = new Driver(); > driver.setInputSource(new InputSource(file)); > driver.setRenderer(Driver.RENDER_PDF); > driver.run(); > }catch(Exception e){ > e.printStackTrace(System.out); > } > } > > It works but I would like to render to the printer (RENDER_PRINT), but I > haven't seen any samples for this anywhere. Could somebody show me how to do > this? > > Faw > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]