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
I need a PDF to attach to an email but without the user seeing the preview
-
- Posts: 174
- Joined: Thu Nov 05, 2020 10:51 am
- Location: DOMINICAN REPUBLIC
-
- 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
Use the "Microsoft Print to PDF" printer without the ACROBAT option.
DCPRINT ON NAME "Microsoft Print to PDF" TOFILE OUTFILE (TmpPDF) TO oPrinter
DCPRINT ON NAME "Microsoft Print to PDF" TOFILE OUTFILE (TmpPDF) TO oPrinter
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
-
- 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
Wolfgang,
thanks to your collaboration or recommendation, you can do the job. Everything was excellent.
Best regards.
thanks to your collaboration or recommendation, you can do the job. Everything was excellent.
Best regards.