485
edits
m (New page: How can I print directly to a file such as PDF or Postscript? ==== Using WinPDF Pro ==== The example below uses WinPDF Pro printer driver for the PDF generation, Winprint (or at least the...) |
|||
Line 2: | Line 2: | ||
==== Using WinPDF Pro ==== | ==== Using WinPDF Pro ==== | ||
The example below uses WinPDF Pro printer driver for the PDF generation, Winprint (or at least the report object in VDF) for the reporting and MAPI for | The example below uses WinPDF Pro printer driver for the PDF generation, Winprint (or at least the report object in VDF) for the reporting and MAPI for sending the mails directly. | ||
Pardon the jumbled looking code, but with Win2PDF pro you can do the following: | Pardon the jumbled looking code, but with Win2PDF pro you can do the following: | ||
Line 36: | Line 36: | ||
move (sMessage + "Thank you,") to sMessage | move (sMessage + "Thank you,") to sMessage | ||
move (sMessage + CR_LF + CR_LF) to sMessage | move (sMessage + CR_LF + CR_LF) to sMessage | ||
move (sMessage + "Barbara | move (sMessage + "Barbara Bambenek" + CR_LF) to sMessage | ||
move (sMessage + "Credit Manager, | move (sMessage + "Credit Manager, Daffie Duck, Inc." + CR_LF) to sMessage | ||
move (sMessage + " | move (sMessage + "555-436-9130" + CR_LF) to sMessage | ||
move (sMessage + " | move (sMessage + "bdoe@duffieDaffie.com" + CR_LF + CR_LF) to sMessage | ||
move (sMessage + "Thank you for choosing | move (sMessage + "Thank you for choosing Daffie Duck products!") to sMessage | ||
get DFGetCurrentDevice of iRepObj to sCurrentDevice | get DFGetCurrentDevice of iRepObj to sCurrentDevice | ||
Line 74: | Line 74: | ||
end | end | ||
send DoInit of hoMapiSession | send DoInit of hoMapiSession | ||
set psMessageSubject of hoMapiSession to (" | set psMessageSubject of hoMapiSession to ("Daffie Duck Invoice" * sInvoice) | ||
set psMessageText of hoMapiSession to sMessage | set psMessageText of hoMapiSession to sMessage | ||
send DoAddReceiver of hoMapiSession MAPI_TO (trim(sEmailAddress)) "" "" 0 | send DoAddReceiver of hoMapiSession MAPI_TO (trim(sEmailAddress)) "" "" 0 | ||
Line 89: | Line 89: | ||
function_return bMailed | function_return bMailed | ||
end_function // JumpStartReport | end_function // JumpStartReport | ||
====External Links==== | ====External Links==== | ||
[http://www.sture.dk/wasp/threadreport.asp?ThreadId=40911 OT: Print to a File] | [http://www.sture.dk/wasp/threadreport.asp?ThreadId=40911 OT: Print to a File] |