Knowledgebase: Developer
VB example for emailing a PDF
Posted by admin admin on 22 November 2006 09:30 PM
The SaveWin2PDFDword routine used in this example is listed on the following page:

The following example enables the "Send PDF" option, sets the email subject, sets the email address, sets the email body text, and then creates the PDF file:
   'enable sending the PDF file 
'replace the file options with &H421 to email with no user interaction using the Mail Helper application
SaveWin2PDFDword "file options", &H21
   'set the email subject (optional)
SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFMailSubject", "Test Subject"
   'set the recipient email address (optional)
SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFMailRecipients",
   'set the email body text (optional)
SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFMailNote", "The requested PDF file is attached."
   'set the PDF file name
SaveSetting "Dane Prairie Systems", "Win2PDF", "PDFFileName", "c:\\test.pdf"
   'output some text
Printer.Print "hello world!"
   'save the PDF file

(0 vote(s))
Not helpful

Comments (0)

Copyright 2000-2018 © Dane Prairie Systems LLC. All Rights Reserved. About Us | Privacy Policy | PDF Blog | Site Map