Abort Emailing
Hi!
I like your buildin Email-Feature. I have made a small form which is
called in the BeforeEMail to get Subject, To and such things.
But now I would like to be able to abort sending this email when the
user is pressing cancel in my form.
How can this be done?
Thank you.
Gruß aus den Bergen
Günter
I like your buildin Email-Feature. I have made a small form which is
called in the BeforeEMail to get Subject, To and such things.
But now I would like to be able to abort sending this email when the
user is pressing cancel in my form.
How can this be done?
Thank you.
Gruß aus den Bergen
Günter
This discussion has been closed.
Comments
The BeforeEmail event fires too late to stop the email process. Try
showing your form before you make a call to Report.SendMail or by
re-implementing the OnClick of the Email button in the preview.
Another option is to replace the existing email form
(EmailSettings.ShowEmailDialog) with your own and let ReportBuilder
handle showing and cancelling. This way the timing will be correct
within the RB architecture. See the following articles on how to
replace RB dialogs.
http://www.digital-metaphors.com/rbWiki/Plugins/Dialogs/Replaceable_Dialogs
http://www.digital-metaphors.com
info@digital-metaphors.com