Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email report using macros

Status
Not open for further replies.

sarun108

Technical User
Jul 27, 2008
5
Hi

ACCPAC 5.2:

I am trying to set up a macro that can email the results in pdf format. I can run the report but it asks for a destination email. How can I pass it?

Here is a code snippet:

rpt.Destination = PD_EMAIL
rpt.Format = PF_PDF

rpt.OutputDestination = OD_CLIENT
rpt.PrintDir = "c:\temp\"

rpt.PrintReport

Any ideas on how this can be done
 
You have to make the PDF, then handle the emailing yourself, typically with a CDO object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top