חוק עסקי יכול לעשות זאת. אתה צריך לוודא שלתעודה יש איש קשר עם כתובת דוא"ל. בחוק יש שני שדות שאתה חייב למלא: "צרף מסמך" – שם התעודה שאתה רוצה לשלוח, ו"PDF".
צריך לחבר כמה דוגמאות מה-SDK. תחת "Executing the Document" (עמוד 199 אצלי) נמצא הקוד הזה
To save the document as an MHTML file (..\..\orders.mht), continue the above code as follows:
:TMPOUT = '..\..\orders.mht';
EXECUTE WINHTML '-d', 'WWWSHOWORDER', 'ORDERS', :TMPORDERS, '-m', :TMPOUT;
Once you have generated the file, you can send an e-mail to a Priority user and attach the file:
:USER = SQL.USER;
MAILMSG 5 TO USER :USER DATA :TMPOUT;