Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Printing Report Directly on Client machine while running the report
vijay_kota
Hi All,
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
Find more posts tagged with
Comments
jverly01
What version of Maximo are you using?
micajblock
Is this not what Direct Print does?
jverly01
Direct Print bypasses most of the print dialog boxes a user has to go through when printing, but the report still has to be finish generating before it will start printing.
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?
micajblock
<blockquote class='ipsBlockquote' data-author="'jverly01'" data-cid="105447" data-time="1340976360" data-date="29 June 2012 - 06:26 AM"><p>
Direct Print bypasses most of the print dialog boxes a user has to go through when printing, but the report still has to be finish generating before it will start printing. <br /></p></blockquote>
<br />
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.<br />
<br />
Do you know of a way to start the print process before the report is completed?
jverly01
<blockquote class='ipsBlockquote' data-author="'mblock'" data-cid="105448" data-time="1340976720" data-date="29 June 2012 - 06:32 AM"><p>
Do you know of a way to start the print process before the report is completed?<br /></p></blockquote>
<br />
As far as I know that's not possible from within Maximo. Doing something like that would have to be done from a stand alone report server.
micajblock
<blockquote class='ipsBlockquote' data-author="'jverly01'" data-cid="105453" data-time="1340982775" data-date="29 June 2012 - 08:12 AM"><p>
As far as I know that's not possible from within Maximo. Doing something like that would have to be done from a stand alone report server.<br /></p></blockquote>
Even with a standalone server how would one print before the report is completed?
jverly01
<blockquote class='ipsBlockquote' data-author="'mblock'" data-cid="105454" data-time="1340982916" data-date="29 June 2012 - 08:15 AM"><p>
Even with a standalone server how would one print before the report is completed?<br /></p></blockquote>
<br />
We're still making some assumptions on what Vijay is asking for. You're right, we may not be able to do what is being asked even with a report sever.
vijay_kota
Hi Jverly/Mblock,
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
micajblock
I do not know that this is possible from withing Maximo. If it is, it will probably require some serious customization.
What is available is Direct Print.
jverly01
Custom java classes would be able to do this, but out of the box BIRT used with Maximo can not.
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.
vijay_kota
Hi Mblock/Jverly,
We are able to achieve first two scenario's.
That is 1. A report will run
2. pdf Output gets saved in server path
facing issue in sending report output directly to default client printer.
Regards,
Vijay
jverly01
That's exactly what Direct Print should do. Can you provide some background on the report coding you made to allow a PDF file to be saved automatically? That may shed some light on why the Direct Print function isn't working properly.
vijay_kota
Hi jverly01,
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();
Latif M P
Hi Vijay ,
it is great. but can tell me where you write this code.Means on which methods or it is class file ??
Thanks