Page 1 of 1

Convert the result of dcprint on to a PDF document

Posted: Mon Aug 09, 2021 11:12 pm
by Diego Euri Almanzar
The ACROBAT parameter of the DCPRINT ON command, you can invoke Acrobat Reader, or BullZip for a print preview. It's fabulous. But what I need is to attach the PDF result to an email.
I know how to send the emial. That is not my concern. What I want is to get a PDF to attach to an email. I am willing to use BullZip or any other tool that you recommend.

How do I avoid the preview, to only get the PDF, using DCPRINT ON?

Re: Convert the result of dcprint on to a PDF document

Posted: Mon Aug 09, 2021 11:45 pm
by skiman
Hi,

If you are using Windows 10 of Server 2016/2019 where Microsoft Print to PDF is available.

DCPRINT ON NAME 'Microsoft print to pdf' TOFILE OUTFILE 'c:\yourpath\yourfile.pdf'

This way the PDF is created without user interface in the map you want. So it is easy to attach it to your mail.

Re: Convert the result of dcprint on to a PDF document

Posted: Tue Aug 10, 2021 2:49 am
by Auge_Ohr
hi,
Diego Euri Almanzar wrote: Mon Aug 09, 2021 11:12 pm I know how to send the emial. That is not my concern.
What I want is to get a PDF to attach to an email.
you can use "Mailto" to send iit to your E-Mail System include Attachment.

Code: Select all

ShellExecute( 0, "open", 'mailto:Auge_Ohr@WEB.DE&subject=Snapshot&Attachment=""'+ cUNCfile +'""',nil,nil, SW_SHOW)
it will stay in "out" - Folder until you send it

p.s. "Body" is not used here (as i send a Image )

---

i do use CDO to send "Snapshot" from Error System as Attachment

Re: Convert the result of dcprint on to a PDF document

Posted: Wed Aug 11, 2021 12:22 am
by Diego Euri Almanzar
Skiman, Jimmy, Thank you, regards.