Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
MAXIMO Birt Direct Print
voller
We want to do some direct Print in a MAXIMO Birt Report to a Barcode Printer.
This Barcode Printer just accepts special ASCII values, for this reason we have to send string-values direct to the barcode-printer.
I have implemented a custom jar file with code below. However, when I start the report, deployed to maximo, this code tries to connect to the default printer at maximo server and NOT to the local default printer??
Does anyone know how to access the local default printer from maximo birt report?
Thanks a lot chris
public static void printString(String printdata)
{
PrinterJob printJob = PrinterJob.getPrinterJob();
java.awt.print.PageFormat format = printJob.defaultPage();
try {
printJob.setPageable(new TextRenderer(printdata, format));
printJob.print();
} catch (NullPointerException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (PrinterException e) {
e.printStackTrace();
}
}
Find more posts tagged with
Comments
There are no comments yet