This action is called before the display of the email entry window, when an email is to be sent in which the printout will be attached in the form of a file. To choose the format of this print file, use the action FICHIER.
Report
It is used to avoid the display of the email entry window, by setting OK = 0.
Several parameters are available to create the email :
_EMailToList : email recipients
_EMailCCList : recipients receiving a copy of the email
_EMailSubject : email title ( maximum 64 character)
_EMailMessage : body of the email
The export format must be entered in the parameter _FormatExport in the action FICHIER (see the detail in the action FICHIER ).
_EMailNoResolve : de-activation of the automatic resolution of the email address names. If this parameter is absent or null, the resolution is activated. By default, if a print server is defined, this parameter is set to 1. It is however possible to modify its value in the action MESSAGERIE.
Print generated in a standard Excel 8.0 format file and sent by email.
$MESSAGERIE
OK=0
NBPAR+=1:PARAMETRE(NBPAR) = "_EMailToList="+chr$(1)+"[email protected]"
NBPAR+=1:PARAMETRE(NBPAR) = "_EMailCCList="+chr$(1)+"[email protected]"
NBPAR+=1:PARAMETRE(NBPAR) = "_EMailSubject="+chr$(1)+"titre"
NBPAR+=1:PARAMETRE(NBPAR) = "_EMailMessage="+chr$(1)+"Text line 1"
NBPAR+=1:PARAMETRE(NBPAR) = "_EMailMessage="+chr$(2)+"text line 2"
Return
$FICHIER
OK=0
NBPAR+=1:PARAMETRE(NBPAR) = "_FormatExport="+chr$(1)+"27"
Return