Send email clicking on print preview
Emanuele Croci
Hi,I need to add some code in the doc1 --> Common Script (of my report)
to send an email when the customer click on the print preview button.
I also need to attach a text file in this email.
Is it possible with the SwissAddon classes?
Can someone help me, please?
Regards
Emanuele
Philipp Knecht
Hi EmanueleYes this is possible.
You always can execute exsisting PrintDefs with:
LayoutHelper.LayoutOpener.ExecutePrintDef("PrintDefCode", LayoutHelper.LayoutOpener.OpenLayoutModes.Email, "MyParam", MyParamValue, "MyParam2", MyParamValue2)...To add additional attachments you can use the LD.AddAttachment(...) - Function.
hth
0
Please sign in to leave a comment.
Comments
0 comments