Skip to main content



      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 08:51 Go to next message
Eclipse UserFriend
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 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried using the postscript emitter, sending the output to the appropriate printer?
Re: Automate report print without manual intervention [message #1199517 is a reply to message #1199493] Wed, 20 November 2013 17:01 Go to previous messageGo to next message
Eclipse UserFriend
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 17:17] by Moderator

Re: Automate report print without manual intervention [message #1201775 is a reply to message #1199517] Thu, 21 November 2013 17:44 Go to previous message
Eclipse UserFriend
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
Previous Topic:Making dynamic bar chart series stack?
Next Topic:Passing parameter to BIRT in Eclipse 3.8.2
Goto Forum:
  


Current Time: Thu Apr 17 21:03:14 EDT 2025

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

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

Back to the top