Printing Report Directly on Client machine while running the report
#1
Posted 18 May 2012 - 10:01 AM
We have unique requirement in which client wants to run the report, while running this report a copy of this must go to the client default local printer..
Can we achive this using BIRT scripting...??
or any java class...??
Any suggesstion would be appereciated....
Regards,
Vijay
Vijay Kumar
#4
Posted 29 June 2012 - 05:26 AM
I guessed what Vijay was asking for was more like a parallel functionality request - as soon as the print button is hit it starts spooling to the default printer.
Vijay - is this an extremely long report that direct print functionality isn't perceived to be good enough? Or does your client want the report to do something like auto-generate and auto-print?
#5
Posted 29 June 2012 - 05:32 AM
jverly01, on 29 June 2012 - 06:26 AM, said:
For any print process the document has to be generated first. I know of nothing that can change this. This has nothing do with BIRT. In BIRT I can (and have) through code changed something in the report right before completion. Another example is if you have a total on the first page.
Do you know of a way to start the print process before the report is completed?
#7
Posted 29 June 2012 - 07:15 AM
#8
Posted 29 June 2012 - 07:37 AM
#9
Posted 02 July 2012 - 04:42 AM
May be i was not very clear on what is really expected.
let me explain it completely.
We have a requirement from the client
When user clicks on one button in one of the maximo application, a perticular report will have to run.
This we done by using some maximo class.
2nd part is while running this report or during this process a output in pdf format should get saved in one of the predefined server path.
3rd part is after this is complete what ever report ran for perticular parameter should also sent into the client's default printer.
Altogether, user only clicks one button.
On this three things happen.
1. A report will run
2. pdf Output gets saved in server path
3. output sent to the client default printer
Hope i m clear now
Vijay
Vijay Kumar
#11
Posted 02 July 2012 - 03:51 PM
Short term would be to make the particular report set to a 'Browser' view , so when it's run it opens a new window and runs the report. At this point the report could be chosen to be saved and run from the same window.
#14
Posted 11 July 2012 - 06:17 AM
Below peic of code will save output in a specific path
fileNames = (new StringBuilder(String.valueOf(fileNames))).append("BIRT_REPORT_").append(paramREPNum).append("_").append(getDateTime()).append(".pdf").toString();
byte abyte0[] = reportAdminServiceRemote.runReport(getMbo().getUserInfo(), reportName, appName, reportParams, "AutoEmail", "pdf");
FileOutputStream fileoutputstream = new FileOutputStream(fileNames);
fileoutputstream.write(abyte0);
fileoutputstream.flush();
fileoutputstream.close();
Vijay Kumar







MultiQuote









