Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Eclipse RCP WebViewer PDF broken
Migrateduser
<p>I have an RCP application that uses the BIRT WebViewer to launch birt reports and all seems to be working for HTML, DOC, and XLS reports, but PDF launches the window and only shows a black icon with an X in it. If I launch my report as HTML and then export it to PDF it works, and if I right click the window --> properties and grab the URL and paste that into IE or Chrome then the report loads.</p><p> </p><p>I am using BIRT 4.3.1 through Eclipse RCP Kepler. I already had problems with IE11 and viewing the other reports but that was solved by adding the following to the launch configuration of my product:</p><pre class="_prettyXprint">-Dorg.eclipse.swt.browser.DefaultType=ie,mozilla-Dorg.eclipse.swt.browser.IEVersion=7000</pre><div>We are (essentially) launching the report like this:</div><div> </div><div><pre class="_prettyXprint">String reportPath = getValidReportPath(reportParentDir, reportName);HashMap<String, Serializable> viewerParameters = new HashMap<String, Serializable>();viewerParameters.put(WebViewer.SERVLET_NAME_KEY, WebViewer.VIEWER_FRAMESET);viewerParameters.put(WebViewer.FORMAT_KEY, WebViewer.PDF);Display display = new Display();Shell shell = new Shell(display, SWT.SHELL_TRIM); shell.setText("BIRT Report: ");shell.setLayout(new FillLayout());Browser browser = new Browser(shell, SWT.NONE);// Launch reportWebViewer.display(reportPath, browser, viewerParameters);shell.open();</pre></div><div> </div><div> </div>
Find more posts tagged with
Comments
There are no comments yet