Detect cancel in PrintDoc() call

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Detect cancel in PrintDoc() call

Postby sgnirtswob » Wed Jan 21, 2009 3:07 pm

Hello,

I am using the active X version of VPE, and when issuing the PrintDoc() we can't detect a user cancelling the dialog. I know there is an event (RequestPrint) that seems ideal for this, except we are using a bespoke programming language which is unable to expose VPE events.
I am playing around with the idea of using the SetupPrinter and then force the PrintDoc(FALSE) to not show a dialog, except at the moment both are forcing the dialog to show.

I am asking at this stage if there is an alternative to the two methods above?

… and will my idea regarding SetupPrinter/PrintDoc be feasible to get working?

Many thanks in advance
sgnirtswob
 
Posts: 2
Joined: Wed Jan 21, 2009 12:07 pm
Location: www.rsmithers.net

Postby IDEAL Software Support » Wed Jan 21, 2009 5:55 pm

I am asking at this stage if there is an alternative to the two methods above?


When using the VPE ActiveX there is no alternative. It is a design flaw, if your programming language is not capable of handling events (which language is it?).

will my idea regarding SetupPrinter/PrintDoc be feasible to get working?


This should work. But during printing VPE sends an event, if the user cancels the print-progress dialog. You will not be informed about that either, if your programming language is not capable of handling events.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby sgnirtswob » Wed Jan 21, 2009 5:57 pm

We are using KCML which is a bespoke programming language.
sgnirtswob
 
Posts: 2
Joined: Wed Jan 21, 2009 12:07 pm
Location: www.rsmithers.net


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 155 guests