eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser CommandsExamples for Tasks of an CommandExamples for report commands 

Printing reports

Calling the class method printReport(String name, boolean showPrintDialog, int number, String printerName, PrintRequestAttributeSet requestAttributeSet1, PrintRequestAttributeSet requestAttributeSet2) of the ReportManager prints a Report. The parameter name is the project relative path of the report file.

Beispiel:

String serverName = "\\\\odadb1";
String printerName = "HP LaserJet 8150 PCL 6";
String printerPath = serverName+"\\"+printerName;
try {
    ReportManager.printReport(
        "reports/test.report",false,1,printerPath,
         null,null);
} catch (IOException e) {
    e.printStackTrace();
}