Jump to content
Changes to the Jaspersoft community edition download ×

JRPrintServiceExporter and PrintDialog


2005 IR Help

Recommended Posts

By: Michael - seimic

JRPrintServiceExporter and PrintDialog

2004-05-10 05:50

Hi,

 

does anybody know, how to determine whether the user printed a report or canceled the print-dialog?

I print reports as follows:

 

JRPrintServiceExporter exporter = new JRPrintServiceExporter();

exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.TRUE);

... // few more properties and the report itself

 

exporter.exportReport();

 

The Methode exportReport() in JRPrintServiceExporter does not return anything (void)

 

I need to ask the user whther the printing was successful or not. I want to avoid this unnecessary question, when a user cancels the print-dialog.

 

Thanks in advance,

Michael

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...