|
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198479 is a reply to message #198105] |
Tue, 31 October 2006 20:03 |
|
Ty,
You can still use paging. You first have to create a rptdocument using the
run task and
then use a render task. In the render task there are two options
task.setPageNumber(3) or task.setPageRange("1-2,5");
There is also a call in IReportDocument to retrieve the total HTML page
count in a report.
iReportDocument.getPageCount()
Jason
"Tyrone Hed" <tyronehed@earthlink.net> wrote in message
news:d448d83f48a67bced5f9ec503a39d7a5$1@www.eclipse.org...
> Folks,
> I have integrated my BIRT reports into our application which is written
> in Tapestry. I am not using the Birt Report Viewer. I am not using a
> servlet.
>
> Does this mean that I can't get paging to work?
>
> Thank you,
> Ty
>
> [BIRT 2.1.1]
>
|
|
|
|
|
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198838 is a reply to message #198572] |
Thu, 02 November 2006 20:13 |
|
Ty,
Take a look at this example
http://wiki.eclipse.org/index.php/Separate_Run_and_Render
The IReportDocument class has a call for determining the page total.
The navigation bars are built in the AJAX viewer. You will need to create
your own.
Jason
"Tyrone Hed" <tyronehed@earthlink.net> wrote in message
news:d15990444e4bb68c0bed9800553fcc2d$1@www.eclipse.org...
> Jason,
> Do you have an example of this anywhere? I can't understand why I would
> want to set the page number. Wouldn't that depend on the outcome of the
> execution?
> How does this cause 'back' and 'next' links/buttons to appear?
>
> Sorry to be thick but I have tried to feel my way through the API but
> it doesn't make exact sense.
>
>
> IReportDocument document = getReportDocument( engine,
> (String)pParameters[ 0 ] );
> IReportRunnable design = document.getReportRunnable();
> IRunTask runTask = engine.createRunTask( design );
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds