catch a return of the system (OS) print dialog?

Is it possible (and how) to get a return (catch) of a canceled print in system print dialog to Servoy?
The function “application.isLastPrintPreviewPrinted” is only working if I use the Servoy print preview, but all my printforms in JasperReport. Currently I have a workaround showing every printfunction a dialog “Print successful? Yes - No” and would like to omit this if printing is successful and/or not canceled. Is there a way to catch the result of the system (OS) print dialog and put it (perhaps) in a variable?

Hopefully my question is not too stupid?
Does anybody have an idea or solution for that problem?

Thomas,

Are you calling the jasper reports plugin with the ‘view’ argument?

Maybe you can add similar functionality as Servoy offers to the plugin, or file a feature request on the servoyforge site.

Rob

Hi Rob,

I take the ‘view’ jasper reports argument only for a preview of the print document. For printing a report I set the ‘print’ argument.
The print button on the JasperViewer window and the direct print function of the report shows the OS-print dialog (set in preferences). In many cases I need a callback which button is clicked on the print dialog… and that’s my problem… and the question how I could get this working with Servoy.

Thomas,

This would be not a feature of Servoy, but of the jasper report plugin.
You can have a look at the java code on servoyforge or file a feature req.

I guess it can be done but would include some copying of jasper reports code into the plugin.

Rob

Yep, just like the prompt parameter in foxpro reporting…

Regards,

rgansevles:
Thomas,

This would be not a feature of Servoy, but of the jasper report plugin.
You can have a look at the java code on servoyforge or file a feature req.

I guess it can be done but would include some copying of jasper reports code into the plugin.

Rob

Thank you Rob!

I’m not a java expert and for that I will file a feature request.