Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Postscript Support in BIRT 2.2.2
Simon_K
Hello
I am trying to generate Postscript by using BIRT 2.2.2 and Java 1.5.
The code (see below) to generate the Postscript completes without getting an error.
But when i am want to print the postscript over a javax.print.PrintService i get a strange behaviour:
- Umlaut-Characters (ä, ö, ü) will not appear on the printed document.
- As soon the document contains a font different from "serif", the document will not be printet at all.
Is there anything i'm doing wrong?
Is this a bug in BIRT?
Simon
// Java Snippet: Generate Postscript
RenderOption options = new RenderOption();
options.setOutputFormat("postscript");
options.setOutputStream(outputStream);
IRunAndRenderTask task = reportEngine.createRunAndRenderTask(design);
task.setAppContext(myAppContext);
task.setRenderOption(options);
task.setLocale(locale);
task.run();
// Java Snippet End
// Java Snippet: Print Postscript
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
Doc d = new SimpleDoc(inputStream, flavor, null);
PrintService printService = null;
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService ps : printServices) {
if (ps.getName().equalsIgnoreCase(printer)) {
printService = ps;
}
}
DocPrintJob dpj = printService.createPrintJob();
dpj.print(d, null);
// Java Snippet End
Find more posts tagged with
Comments
There are no comments yet