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?
Convert the result of dcprint on to a PDF document
-
- Posts: 176
- Joined: Thu Nov 05, 2020 10:51 am
- Location: DOMINICAN REPUBLIC
Re: Convert the result of dcprint on to a PDF document
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.
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
hi,
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
you can use "Mailto" to send iit to your E-Mail System include Attachment.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.
Code: Select all
ShellExecute( 0, "open", 'mailto:Auge_Ohr@WEB.DE&subject=Snapshot&Attachment=""'+ cUNCfile +'""',nil,nil, SW_SHOW)
p.s. "Body" is not used here (as i send a Image )
---
i do use CDO to send "Snapshot" from Error System as Attachment
greetings by OHR
Jimmy
Jimmy
-
- Posts: 176
- Joined: Thu Nov 05, 2020 10:51 am
- Location: DOMINICAN REPUBLIC
Re: Convert the result of dcprint on to a PDF document
Skiman, Jimmy, Thank you, regards.