Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim objPrinter As Variant
- Set objPrinter = CreateObject("Pdfcreator.clspdfcreator")
- With objPrinter
- .cStart "/NoProcessingAtStartup"
- .cOption("UseAutosave") = 1
- .cOption("UseAutosaveDirectory") = 1
- .cOption("AutosaveDirectory") = workDir
- .cOption("AutosaveFilename") = Strleft( tempFileName , "." )
- .cOption("AutosaveFormat") = 0 ' 0 = PDF
- .cOption("PDFDisallowCopy") = 1
- .cOption("PDFDisallowModifyContents") = 1
- .cOption("PDFDisallowPrinting") = 1
- .cPrinterstop = False
- End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement