I need a PDF to attach to an email but without the user seeing the preview
Posted: Thu Mar 03, 2022 4:21 pm
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
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