Eclipse RCP BIRT WebViewer PDF Broken [message #1244690] |
Wed, 12 February 2014 18:55 |
Stephen Tague Messages: 6 Registered: February 2014 |
Junior Member |
|
|
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.
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:
-Dorg.eclipse.swt.browser.DefaultType=ie,mozilla
-Dorg.eclipse.swt.browser.IEVersion=7000
We are (essentially) launching the report like this:
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 report
WebViewer.display(reportPath, browser, viewerParameters);
shell.open() ;
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 5.04860 seconds