Sample program to print an invoice and sent it as attchment by email

Discussion forum about all things Team Developer 5.x and 6.x
Samad Sodul
Mauritius
Posts: 32
Joined: 29 Aug 2018, 15:21
Location: Mauritius

Sample program to print an invoice and sent it as attchment by email

Post by Samad Sodul » 06 Mar 2019, 09:05

Hi
I am working on TD63.

Is it possible for me to get a sample program which prints a customer invoice in a PDF file format and send it automatically as an attachment by email to the client, without any manual intervention.


Thanks


Samad

EwaldP
Austria
Posts: 376
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: Sample program to print an invoice and sent it as attchment by email

Post by EwaldP » 07 Mar 2019, 08:17

Hi Samad,

you can create the pdf file with SalReportPrintToFile or SalReportPrintToFileEx. Then you can send the the PDF as attachment with the SalMail-Class. A sample for SalMail you will find in the 60Demo directory (Demo1).

Regards
Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Samad Sodul
Mauritius
Posts: 32
Joined: 29 Aug 2018, 15:21
Location: Mauritius

Re: Sample program to print an invoice and sent it as attchment by email

Post by Samad Sodul » 07 Mar 2019, 12:23

Thanks Ewald for your help.

Samad

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests