add or use email button
we have some library code for sending email, I wish to use this code in place of the email button OnClick event that is added to the previewer when email has been enabled that is ppReport1.EmailSettings.Enabled := True;
how can I assign our own event to EmailButton.OnClick
if Assigned(EmailButton) then
EmailButton.OnClick = OurEmailEvent
or how can I add a button to the previewer
how can I assign our own event to EmailButton.OnClick
if Assigned(EmailButton) then
EmailButton.OnClick = OurEmailEvent
or how can I add a button to the previewer
Comments
Take a look at the following articles on how to access the preview buttons or add new buttons by creating a custom preview plugin.
This first article shows how to access the preview buttons (and hide one of them). In your case you will assign the OnClick event of the EmailButton rather than hide it.
http://rbwiki.digital-metaphors.com/output/preview/how-to-hide-the-preview-toolbar-buttons/
http://rbwiki.digital-metaphors.com/output/preview/how-to-add-a-button-to-the-preview/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com