Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Postscript page count
Postscript page count [message #528803] Wed, 21 April 2010 19:53 Go to next message
Paul  is currently offline Paul
Messages: 4
Registered: April 2010
Junior Member
I'm trying to get BIRT to display a page count (Page n of m) when printing on a server. Right now I'm making a http request to the server, which processes the report and sends postscript print jobs just fine. There is a bug that is keeping the total page count from showing when I do this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=180416

I noticed in the bug comments there's may be some kind of workaround:
"... those issues only exist in runAndRender task. The result of
run then render is correct."
Is there some way I can get this to happen, or is there no way around this without a bug fix?
Re: Postscript page count [message #528944 is a reply to message #528803] Thu, 22 April 2010 13:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Paul,

Are you using the viewer or the RE API?
If you are using the Viewer are you using the Frameset mapping?
When you separate the run and render task a rptdocument is created which
is then used to render the report in a specific output.

Jason

Paul wrote:
> I'm trying to get BIRT to display a page count (Page n of m) when
> printing on a server. Right now I'm making a http request to the server,
> which processes the report and sends postscript print jobs just fine.
> There is a bug that is keeping the total page count from showing when I
> do this:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=180416
>
> I noticed in the bug comments there's may be some kind of workaround:
> "... those issues only exist in runAndRender task. The result of
> run then render is correct."
> Is there some way I can get this to happen, or is there no way around
> this without a bug fix?
Re: Postscript page count [message #528985 is a reply to message #528944] Thu, 22 April 2010 14:35 Go to previous messageGo to next message
Paul  is currently offline Paul
Messages: 4
Registered: April 2010
Junior Member
I'm using the viewer w/ the frameset (The server pretty much overrides the PDF format variable).

http://SERVER:8080/REPORT/frameset?__printer=PRINTER&myV ar1=FOO&__report=aReport.rptdesign&myVar2=BAR&__ action=print&__format=PDF&__parameterpage=false

I have a java client app that makes a bunch of the calls to the server to handle batch printing and the like. From what I'm gathering, this means I'd need to make some kind of run then render then print rmi service to get this to work? Is there some easier way of doing this that's built into BIRT that gets around this?

Thank you for the help!
Re: Postscript page count [message #529052 is a reply to message #528985] Thu, 22 April 2010 17:27 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Does a user enter the URL or is this done by a Java App? add a
__document=c:/tmp/test.rptdocument parameter to the url and verify it
gets created. Then run it again with the same url but drop the __report
parameter url.

Jason

On 4/22/2010 10:35 AM, Paul wrote:
> I'm using the viewer w/ the frameset (The server pretty much overrides
> the PDF format variable).
>
> http://SERVER:8080/REPORT/frameset?__printer=PRINTER&myV ar1=FOO&__report=aReport.rptdesign&myVar2=BAR&__ action=print&__format=PDF&__parameterpage=false
>
>
> I have a java client app that makes a bunch of the calls to the server
> to handle batch printing and the like. From what I'm gathering, this
> means I'd need to make some kind of run then render then print rmi
> service to get this to work? Is there some easier way of doing this
> that's built into BIRT that gets around this?
> Thank you for the help!
Re: Postscript page count [message #529243 is a reply to message #529052] Fri, 23 April 2010 14:39 Go to previous messageGo to next message
Paul  is currently offline Paul
Messages: 4
Registered: April 2010
Junior Member
I'm not having any luck getting the page count to show using a basic test through the browser using that method (Typically this call would be made by a java app). Through my browser, I've tried a couple of variations using the __document parameter while changing up format (tried pdf, postcript, and removing the param) and testing with and without the __printer and __action parameters. It creates the document (the browser actually returns it), then I run the second query (that is the query without the __report parameter, that also contains the __action=print) and it prints the document. The problem is it still doesn't print the total page count. Also when it returns a postscript, it returns without the page count. Confused
Re: Postscript page count [message #529269 is a reply to message #529243] Fri, 23 April 2010 16:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Paul,

If you use the viewer with frameset and specify html output does it work?

Jason


On 4/23/2010 10:39 AM, Paul wrote:
> I'm not having any luck getting the page count to show using a basic
> test through the browser using that method (Typically this call would be
> made by a java app). Through my browser, I've tried a couple of
> variations using the __document parameter while changing up format
> (tried pdf, postcript, and removing the param) and testing with and
> without the __printer and __action parameters. It creates the document
> (the browser actually returns it), then I run the second query (that is
> the query without the __report parameter, that also contains the
> __action=print) and it prints the document. The problem is it still
> doesn't print the total page count. Also when it returns a postscript,
> it returns without the page count. :?
Re: Postscript page count [message #529271 is a reply to message #529269] Fri, 23 April 2010 16:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If it does not can you post the report?

On 4/23/2010 12:23 PM, Jason Weathersby wrote:
> Paul,
>
> If you use the viewer with frameset and specify html output does it work?
>
> Jason
>
>
> On 4/23/2010 10:39 AM, Paul wrote:
>> I'm not having any luck getting the page count to show using a basic
>> test through the browser using that method (Typically this call would be
>> made by a java app). Through my browser, I've tried a couple of
>> variations using the __document parameter while changing up format
>> (tried pdf, postcript, and removing the param) and testing with and
>> without the __printer and __action parameters. It creates the document
>> (the browser actually returns it), then I run the second query (that is
>> the query without the __report parameter, that also contains the
>> __action=print) and it prints the document. The problem is it still
>> doesn't print the total page count. Also when it returns a postscript,
>> it returns without the page count. :?
>
Re: Postscript page count [message #529344 is a reply to message #529271] Fri, 23 April 2010 21:00 Go to previous messageGo to next message
Paul  is currently offline Paul
Messages: 4
Registered: April 2010
Junior Member
The html output works; the postscript doesn't. Here's the environment it's running on:

Viewer Version : 2.5.1
Engine Version: 2.5.1
JRE version: 1.6.0_16
JBoss 5.1.0
CentOS 5.3

I'm going to defer this feature for my report in hopes that 2.6 fixes it. I really do appreciate the help Jason.
Re: Postscript page count [message #529634 is a reply to message #529344] Mon, 26 April 2010 15:13 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Ok Paul, sorry I could not help you.

On 4/23/2010 5:00 PM, Paul wrote:
> The html output works; the postscript doesn't. Here's the environment
> it's running on:
>
> Viewer Version : 2.5.1
> Engine Version: 2.5.1
> JRE version: 1.6.0_16
> JBoss 5.1.0
> CentOS 5.3
>
> I'm going to defer this feature for my report in hopes that 2.6 fixes
> it. I really do appreciate the help Jason.
Re: Postscript page count [message #636461 is a reply to message #528944] Mon, 01 November 2010 13:09 Go to previous messageGo to next message
R.Murali Missing name is currently offline R.Murali Missing name
Messages: 30
Registered: November 2010
Member
Hi
am new to BIRT
How to run report in client eclipse...
am using eclipse 3.6 and BIRT 2.6.....
i can able to design a report and view the report by clicking Preview tab....
What i want to do is,i want to run the report output in separate Window....
Can anybody help me
Re: Postscript page count [message #636491 is a reply to message #636461] Mon, 01 November 2010 14:58 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Try selecting the Birt Perspective and clicking on
run->View Report->In Web Viewer.

Jason

On 11/1/2010 9:09 AM, R.Murali wrote:
> Hi
> am new to BIRT
> How to run report in client eclipse...
> am using eclipse 3.6 and BIRT 2.6.....
> i can able to design a report and view the report by clicking Preview
> tab....
> What i want to do is,i want to run the report output in separate Window....
> Can anybody help me
Previous Topic:How to run report in client eclipse
Next Topic:WebViewer NullPointerException when using global variables
Goto Forum:
  


Current Time: Sat Oct 25 22:07:58 GMT 2014

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

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