Create to PDF does not work when exported
I am using BIRT in an RCP application. When I send the output directly to a PDF it works from my development environment but when exported it does not work. There is no error message and the log messages I added indicate the code is being called. <br />
<br />
I changed it to use HTML and that works but the users want it directly into a PDF opened in an OS window using Adobe Reader.<br />
<br />
Any suggestions on what to try to get this to work when exported?<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
// display the PDF allowing the user to print if desired
Browser browser = new Browser(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), SWT.NONE);
StatusManager.getManager().handle(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Browser created", null), StatusManager.LOG);
Map<String, Object> params = new HashMap<String, Object>();
params.put(WebViewer.SERVLET_NAME_KEY, WebViewer.VIEWER_FRAMESET);
params.put(WebViewer.FORMAT_KEY, WebViewer.PDF);
Map<String, String> emitmap = new HashMap<String, String>();
emitmap.put("__title", "ACRewind Report");
params.put("EMITTER_OPTIONS_KEY", emitmap);
DefaultScope.INSTANCE.getNode(ViewerPlugin.PLUGIN_ID).put(WebViewer.APPCONTEXT_EXTENSION_KEY, "windingcard.appcontext");
StatusManager.getManager().handle(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Params created", null), StatusManager.LOG);
WindingCardAppContext.setResult(selectedResult);
WindingCardAppContext.setMotor(editor.getMotor());
WindingCardAppContext.setCustomer(cust);
StatusManager.getManager().handle(new Status(IStatus.INFO, Activator.PLUGIN_ID, "before call to WebViewer.display()", null), StatusManager.LOG);
WebViewer.display(repName, browser, params);
StatusManager.getManager().handle(new Status(IStatus.INFO, Activator.PLUGIN_ID, "before call to layout()", null), StatusManager.LOG);
</pre>