Alaska Software Inc. - email function for XbpPDF Class
Username: Password:
AuthorTopic: email function for XbpPDF Class
Edgar Borger email function for XbpPDF Class
on Tue, 20 Sep 2011 15:46:50 -0300
Hello all XbpPDF Users,

We are happy to announce a new feature in our XbpPDF class. You can now add an Email button to the preview window,
and create your email routine to send your PDF files as an email attachment.

You can use this feature with our XbpSMTP class, or SocMapi, or any other email interface you wish to use.

Bellow is a sample of the necessary coding :

****************************************************************************************************
pdf := xbppdf():New( your key here )
pdf:Create()
pdf:cTitle := "XbpPDF 4 - Xbase++ PDF View & Print Class"

pdf:bEMail := {||EMail( filename )}

pdf:View(filename,-1 )

pdf:Destroy()

return

FUNCTION EMail( cFilename )
LOCAL cAtt := CurDrive() + ":\" + CurDir() + "\" + cFilename

Sendmail(cEmail_address, "Sending PDF", "See the attached PDF file", cAtt )

Return(.t.)
*********************************************************************************************************

The new version is available for download at our site http://www.borger.com.br/softsupply/pdf/XppPDF44.zip
and is a free upgrade to all our registered users.

Please feel free to write us at any time if you have any questions about our product.

Best regards,
Edgar