Skip to Content
author's profile photo Former Member
Former Member

Printing from Crystal Report Viewer in Powerbuilder

I have a Crystal Report Viewer Control placed on a Powerbuilder window. I have my own Print button placed on the window. The code I have in the clicked event of this button is as follows


This code displays a Print dialog box where I can select the printer.

I want to implement a functionality which checks whether the printing was successful . If it was successful I want to update a table in the DB else do not update.If I click Cancel on the Print dialog the DB table should not be updated.

Is it possible to implement such functionality?

I am using CR XI RDC with Powerbuilder 9.0.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 17, 2008 at 04:53 PM

    Only option I can think of, is to create your own printer dialog and capture the cancel print event there.

    You will not be able to get at the print cancel event of the printer dialog displayed by the CR viewer print button.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.