[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: birt report as print preview on desktop app

Andreas,

What Jason posted before would work for your needs, you just need an OSGi launcher/framework in your application. Then you would just need to load the birt viewer plugin, and use some HTML viewer pane, like JeditorPane, to display the results. The BIRT Viewer plugin is a self-contained report viewer running on top of Jetty in 2.3, Tomcat in prior versions.

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.

John

andreas wrote:
thanks for the reply.
I want to show a generated Report as an embedded print-preview in a swing application. I know, that the Report Designer (RD) in eclipse uses the Report Viewer(RV) to show a result. But as far a i know the RV is a WebApp which runs in a Tomcat App Server so this wouldn't work in a desktop environment without any server. Further i'm sticked to swing so i can't use swt to visualize RV. This solution also wouldn't be very embedded by the way.


What i thought about as kind of a workaround is to produce html or pdf and show this in swing using some common api's. The disadvantage is that i have propably high costs to adapt the presentation that it looks and operates like a print preview.

I would feel a litle bit queasy to walk this way just to show a paginated preview of the report where the user has a TOC and print or export features in a swing application. Am I the only one with such a request?