Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Automate report print without manual intervention(Automate report print)
Automate report print without manual intervention [message #1184503] Wed, 13 November 2013 13:51 Go to next message
rd w is currently offline rd wFriend
Messages: 3
Registered: November 2013
Junior Member
I have a requirement to generate a report which reports data from 2 different regions.. Results of regions printed in a different letter head,

So my question is :
Is it possible to have a master report call two subreports, and for each sub-report 1 automatically send the report for print to a printer 1
and sub-report 2 to printer 2
Any help pls...
Re: Automate report print without manual intervention [message #1199493 is a reply to message #1184503] Wed, 20 November 2013 21:46 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Have you tried using the postscript emitter, sending the output to the appropriate printer?

Michael

Developer Evangelist, Silanis
Re: Automate report print without manual intervention [message #1199517 is a reply to message #1199493] Wed, 20 November 2013 22:01 Go to previous messageGo to next message
rd w is currently offline rd wFriend
Messages: 3
Registered: November 2013
Junior Member
actual requirement is to print different reports from papers kept in different printer tray.

i was not able to select printer tray through code .. so i created virtual instances of the printer with the idea of sending each report to a different instance of the printer.

for some reason postscript was not supported in the birt ( from maximo - birt 3.7.1 ). i m using pdf, html emitters

//Code:
selectedPrinter=PrintServiceLookup.lookupDefaultPrintService();

inputStream = ByteArrayInputStream(reportOutput);

aset=HashPrintRequestAttributeSet()
aset.add(MediaTray.MIDDLE)

job = service.createPrintJob( )
doc = SimpleDoc( inputStream,DocFlavor.INPUT_STREAM.POSTSCRIPT, null )
job.print( doc,aset )
--
This code throws an exception saying invalid docflavor

[Updated on: Wed, 20 November 2013 22:17]

Report message to a moderator

Re: Automate report print without manual intervention [message #1201775 is a reply to message #1199517] Thu, 21 November 2013 22:44 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

So, Maximo doesn't have the postscript emitter, so you try to use PDF instead? You could always use BIRT separate from Maximo. You might also take a look at this:

http://stackoverflow.com/questions/1407459/silent-printing-of-pdf-from-within-java


Michael

Developer Evangelist, Silanis
Previous Topic:Making dynamic bar chart series stack?
Next Topic:Passing parameter to BIRT in Eclipse 3.8.2
Goto Forum:
  


Current Time: Thu Sep 19 15:53:19 GMT 2024

Powered by FUDForum. Page generated in 0.03953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top