|
|
Re: Birt 2.6.0 Viewer in RCP Application [message #553148 is a reply to message #552881] |
Mon, 16 August 2010 14:38 |
|
Mike,
What do you mean by it goes into a file?
Jason
On 8/13/2010 8:49 PM, Mike wrote:
> I bit the bullet and grabbed the Birt source and hooked it up to my app
> so I could see what the actual BirtException was being gobbled by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=292109 .
> Let me just say after a whole bunch of messing around it turns out that
> at some point (Birt 2.5.1??) I need to include the
> org.eclipse.birt.report.engine.script.javascript plugin in my
> configuration since I'm using scripted data sources. Its probably in the
> docs some place. :lol:
> The report is now running and being rendered. It goes into a file for
> some reason, but it does work.
|
|
|
|
|
Re: Birt 2.6.0 Viewer in RCP Application [message #553530 is a reply to message #553286] |
Tue, 17 August 2010 20:08 |
|
Let us know how it goes.
On 8/16/2010 9:01 PM, Mike wrote:
> I knew I was stupid. I don't have an Acrobat reader in the Linux
> Firefox. All PDF files are opened in an external Document Viewer. I'm
> going to look into getting that installed and working.
|
|
|
Re: Birt 2.6.0 Viewer in RCP Application [message #558451 is a reply to message #552881] |
Sun, 12 September 2010 23:59 |
Marco Lopes Messages: 61 Registered: September 2010 |
Member |
|
|
We had the same problem with our RCP app. Solved that one years ago.
Here is the code
PDF_PRINT_JAVASCRIPT = "this.print({bUI: true, bSilent:false});\r";
String tempFile = ... create temp file...
FileOutputStream out = new FileOutputStream(tempFile);
FileInputStream in = new FileInputStream(filename);
PdfReader pdfReader = new PdfReader(in);
PdfStamper pdfStamper = new PdfStamper(pdfReader,out);
pdfStamper.addJavaScript(BirtVARS.PDF_PRINT_JAVASCRIPT);
pdfStamper.close();
We are using iText-5.0.4.jar
[Updated on: Mon, 13 September 2010 00:04] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03335 seconds