| PDF / HTML Print feature as Print Preview page [message #366938] |
Tue, 10 February 2009 06:44  |
Eclipse User |
|
|
|
Hello,
I wanted to invoke the pdf / html print functionality from my eclipse
plugin. I found a few similar requirements in some of the previous
newsgroup posts.
One solution was to use BirtUtility.doPrintAction(). But I don't find the
javadocs on how to use this method. When I traced for this class, the
BirtUtility.class is available in viewer.jar which is placed in the plugin
"org.eclipse.birt.report.viewer". Its a jar instead of a plugin!!!
Another solution which I found in the previous newsgroup post is
"If your not able or willing to use OSGi in your application, then you can
do the same thing manually using the Report Engine API. All your doing is
a basic Run task, and Rendering the pages to be previewed, or doing a
RunAndRender task and showing the whole document, sans pagination."
Since I am a newbie to BIRT, the solution is very vague for me to
understand. How can I use the Report Engine API? What is RunAndRender
task?
I have a requirement to use the BIRT print feature as a print preview page
in my application.
Any help is appreciated.
Thanks in advance,
Madhu
|
|
|
| Re: PDF / HTML Print feature as Print Preview page [message #366956 is a reply to message #366938] |
Tue, 10 February 2009 19:44   |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Madhu,
The RE API is explained here:
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.p hp
If you preview needs to work like the current designer you can just
include the viewer plugin in your app. Take a look at this example:
http://wiki.eclipse.org/RCP_Example_%28BIRT%29_2.1
Jason
Madhu Samuel wrote:
> Hello,
>
>
> I wanted to invoke the pdf / html print functionality from my eclipse
> plugin. I found a few similar requirements in some of the previous
> newsgroup posts.
>
>
> One solution was to use BirtUtility.doPrintAction(). But I don't find
> the javadocs on how to use this method. When I traced for this class,
> the BirtUtility.class is available in viewer.jar which is placed in the
> plugin "org.eclipse.birt.report.viewer". Its a jar instead of a plugin!!!
>
>
> Another solution which I found in the previous newsgroup post is
>
> "If your not able or willing to use OSGi in your application, then you
> can do the same thing manually using the Report Engine API. All your
> doing is a basic Run task, and Rendering the pages to be previewed, or
> doing a RunAndRender task and showing the whole document, sans pagination."
>
>
> Since I am a newbie to BIRT, the solution is very vague for me to
> understand. How can I use the Report Engine API? What is RunAndRender task?
> I have a requirement to use the BIRT print feature as a print preview
> page in my application.
>
> Any help is appreciated.
>
> Thanks in advance,
> Madhu
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.06142 seconds