Convert the result of dcprint on to a PDF document

This forum is for eXpress++ general support.
Post Reply
Message
Author
Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

Convert the result of dcprint on to a PDF document

#1 Post 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?

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

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

#2 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

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

#3 Post 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
greetings by OHR
Jimmy

Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

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

#4 Post by Diego Euri Almanzar »

Skiman, Jimmy, Thank you, regards.

Post Reply