Home General

Email new file option in Groups

Hi,

I have the "Email new file" option enabled in a Group. Depending on the circumstances, sometimes we just want to created the PDF attachment but not send an email for each group. Is there a setting to quickly disable the sending of the email or do I just need to traverse the Groups and set the "Email new file" properly to False for each Group? Ideally, I'd like to do something like.

if ppReport1.HasEmailGroup then
{ set some property to not send email }

Thanks in advance for you assistance (again).
Thanks,
Scott

Comments

  • Hi Scott,

    The file device has the property AllowEmail that can be toggled to prevent any emails from being set. This is how the "Email File" option is controlled in the print dialog.

    I have not tested this but you would likely need to use the OnFileDeviceCreate event to check the HasEmailGroup value and assign the TppFileDevice.AllowEmail property accordingly.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • That worked great adding it to the OnFileDeviceCreate event. I appreciate your help.
    Thanks,
    Scott
Sign In or Register to comment.