I need a PDF to attach to an email but without the user seeing the preview

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

I need a PDF to attach to an email but without the user seeing the preview

#1 Post by Diego Euri Almanzar »

aOptions := { 0, NIL , '5', nil, nil, .f., 'Microsoft Print to PDF', 3, nil, .F., .F. }
DC_PrintPreviewAcrobatOpt( aOptions )
TMPpdf := "C:\APPWX\ALLPDF\"+alltrim(bcpimpor)+".PDF"
//
IF FILE(TMPpdf)
DELETE FILE (TMPpdf)
ENDIF

DCPRINT ON ACROBAT TO oPrinter TOFILE OUTFILE (TMPpdf)

I am very satisfied, I liked it a lot, how well these sentences work. But sometimes I want to prevent the user from looking at the result. Since on some occasions, I only want the PDF to send it by email. How do I avoid the preview, how do I hide it?

Best regards

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: I need a PDF to attach to an email but without the user seeing the preview

#2 Post by Wolfgang Ciriack »

Use the "Microsoft Print to PDF" printer without the ACROBAT option.

DCPRINT ON NAME "Microsoft Print to PDF" TOFILE OUTFILE (TmpPDF) TO oPrinter
_______________________
Best Regards
Wolfgang

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

Re: I need a PDF to attach to an email but without the user seeing the preview

#3 Post by Diego Euri Almanzar »

Wolfgang,

thanks to your collaboration or recommendation, you can do the job. Everything was excellent.

Best regards.

Post Reply