In my quick testing the EmailSettings.Enabled property does toggle the visibility of the email button in the preview. This is controled in the TppPreview.BeforePreview routine about half way down...
If you are overriding this routine in your custom preview, you will need to add this line. Also note that if you are loading templates, this property will either need to be saved down with the templates or assigned after they are loaded.
Comments
In my quick testing the EmailSettings.Enabled property does toggle the
visibility of the email button in the preview. This is controled in the
TppPreview.BeforePreview routine about half way down...
FEmailButton.Visible := FReport.EmailSettings.Enabled;
If you are overriding this routine in your custom preview, you will need to
add this line. Also note that if you are loading templates, this property
will either need to be saved down with the templates or assigned after they
are loaded.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I must be getting old. I was indeed enabling the email button in a plugin
that I had completely forgotten about.
Ken