How to cancel out of the BEFOREMAIL event

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

How to cancel out of the BEFOREMAIL event

Postby petermarlborough » Wed Mar 23, 2011 6:39 pm

I have some code present in the BEFOREMAIL event and depending on a condition needs to prevent the email from opening up. I have searched through the documentation and the forum and couldn't find anything. However in a couple of replies to people I've seen you indicating that you can cancel out of this event. I am using VFP 9.0 and VPE 3.6 Professional.

Thanks
petermarlborough
 
Posts: 1
Joined: Wed Mar 23, 2011 6:35 pm

Re: How to cancel out of the BEFOREMAIL event

Postby IDEAL Software Support » Wed Mar 23, 2011 6:50 pm

Well, it is clearly written in the documentation. For the DLL, return the value as described in the DLL manual for this event.

For the ActiveX, VCL, .NET and Java set the parameter Cancel = true.

Does this help?
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 66 guests