We are using java Cristal report for printing. We have a problem in printing from label printers.
it throws,
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKPrinterException: Report could not be printed.
at com.businessobjects.crystalreports.printer.bean.Printer.X(Unknown Source) ~[CrystalReportsRuntime-12.2.216.2042.jar:12.2.216.2042]
at com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source) ~[CrystalReportsRuntime-12.2.216.2042.jar:12.2.216.2042]
at com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source) ~[CrystalReportsRuntime-12.2.216.2042.jar:12.2.216.2042]
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.printReport(SourceFile:711) ~[CrystalReportsRuntime-12.2.216.2042.jar:12.2.216.2042]
... 161 common frames omitted
Caused by: java.awt.print.PrinterException: Paper's imageable width is too small.
this is the code use for printing
printerJob.printDialog();
reportClientDocument.getPrintOutputController().printReport(printerJob, null);
can any one know why this happens ?