BIRT Exchange Forum: Printing Report Directly on Client machine while running the report - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Printing Report Directly on Client machine while running the report Rate Topic: -----

#1 User is offline   vijay_kota Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 94
  • Joined: 29-January 11


Posted 18 May 2012 - 10:01 AM

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
Regards,

Vijay Kumar
0

#2 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 27 June 2012 - 05:30 AM

What version of Maximo are you using?
0

#3 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 213
  • Joined: 07-August 07


Posted 27 June 2012 - 04:53 PM

Is this not what Direct Print does?
0

#4 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 29 June 2012 - 05:26 AM

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?
0

#5 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 213
  • Joined: 07-August 07


Posted 29 June 2012 - 05:32 AM

View Postjverly01, on 29 June 2012 - 06:26 AM, said:

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.


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?
0

#6 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 29 June 2012 - 07:12 AM

View Postmblock, on 29 June 2012 - 06:32 AM, said:

Do you know of a way to start the print process before the report is completed?


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.
0

#7 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 213
  • Joined: 07-August 07


Posted 29 June 2012 - 07:15 AM

View Postjverly01, on 29 June 2012 - 08:12 AM, said:

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.

Even with a standalone server how would one print before the report is completed?
0

#8 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 29 June 2012 - 07:37 AM

View Postmblock, on 29 June 2012 - 08:15 AM, said:

Even with a standalone server how would one print before the report is completed?


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.
0

#9 User is offline   vijay_kota Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 94
  • Joined: 29-January 11


Posted 02 July 2012 - 04:42 AM

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
Regards,

Vijay Kumar
0

#10 User is offline   mblock Icon

  • Expert Member
  • View blog
  • Group: Members
  • Posts: 213
  • Joined: 07-August 07


Posted 02 July 2012 - 01:32 PM

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.
0

#11 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 02 July 2012 - 03:51 PM

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.
0

#12 User is offline   vijay_kota Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 94
  • Joined: 29-January 11


Posted 04 July 2012 - 04:22 AM

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
Regards,

Vijay Kumar
0

#13 User is offline   jverly01 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 30
  • Joined: 19-August 08


Posted 06 July 2012 - 07:59 AM

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.
0

#14 User is offline   vijay_kota Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 94
  • Joined: 29-January 11


Posted 11 July 2012 - 06:17 AM

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();
Regards,

Vijay Kumar
0

#15 User is offline   Latif M P Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: 09-November 11


Posted 25 October 2012 - 07:12 AM

Hi Vijay ,
it is great. but can tell me where you write this code.Means on which methods or it is class file ??
Thanks
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users