Jump to content
  • Print Job Listener


    tcloonan
    Assigned User teodord
    CategoryFeature request
    PriorityLow
    ReproducibilityAlways
    ResolutionFixed
    SeverityTrivial
    StatusClosed

    Original issue moved from:

    https://sourceforge.net/tracker/index.php?func=detail&aid=1499865&group_id=36382&atid=416706

     

    Consult the original issue for any attachments.

     

    [ 1499865 ] Print Job Listener

     

    Submitted By: pen123 - pen123

    Date Submitted: 2006-06-02 16:45

    Last Updated By: Item Submitter - Tracker Item Submitted

    Date Last Updated: No updates since submission

    Number of Comments: 0

    Number of Attachments: 0

     

    Assigned To: Nobody/Anonymous

    Priority: 5

     

    Summary:

    Print Job Listener

     

    JRPrintServiceExporter and internally JRGraphics2DExporter classes use JRExportProgressMonitor to monitor the print jobs. However the montitoring capabilities are very limited.

     

    Java printing api provides these capabilities through javax.print.event.PrintJobListener interface.

     

    Currently we can pass the following paramters to exportReport method on JRPrintServiceExporter class.

     

    JRAbstractExporter exporter = new

    JRPrintServiceExporter();

    exporter.setParameter

    (JRExporterParameter.OUTPUT_FILE_NAME, getDeliverable

    ().getAccessionNbr());

    exporter.setParameter

    (JRPrintServiceExporterParameter.PRINT_SERVICE,

    service);

    exporter.setParameter

    (JRExporterParameter.JASPER_PRINT, ite.next());

    exporter.exportReport();

     

    The PrintJob is internally created and there is no handle for applications to recieve notifications.

     

    Can we enhance Jasper API to pass PrintJob also as parameter to exportReport method?

     

    If we can do that, we can register Listener before invoke the Jasper Print Service.

     

    Please let me know your ideas.

     

    thanks

    LP

     

     

    No follow-up comments have been posted.

     

    No Files Currently Attached



    User Feedback

    Recommended Comments

     

    Hi,

     

    The problem I\'m seeing is that in the JRPrintServiceExporter we don\'t work with a PrintJob object directly, but rather with a PrinterJob object.

    So we would need to modify this approach (with possible unwated consequences) if it is for us to support the suggested feature.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites


×
×
  • Create New...