External report - attach file ITALIAN -ENGLISH
Lorenz81
Hi experti create a new print definition rules in coresuite customize to attach an external pdf file when the user sent the document by e-mail
if i want to attach it dinamically, select a pdf english document when the ORDR.languagecode is english and a Italian pdf when the languagecode is Italian, what i have to do?
i've a single printdefinition
this is the script
try
{
if (pVal.ReportEvent.Mode != LayoutHelper.LayoutOpener.OpenLayoutModes.Email)
return true ;
string fileName = @"D:\SAP\ALLEGATI\ALLEGATI\CG_2011_RIDOTTO ITA.pdf";
LayoutHelper.LD.AddAttachment(fileName);
}
catch (Exception ex)
{
MessageBox.Show("Error in " + pVal.RuleInfo.RuleName + " " + ex.ToString(), "Ok");
}
return true;
0
Please sign in to leave a comment.
Comments
0 comments