Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2632

Run-time error using PdfSettings.OpenViewer setting

$
0
0

@munrobasher wrote:

I’m writing some Excel code to generate a password protected PDF using VBA. It’s working so far except I don’t want the current PDF viewer opening after the file is saved. However, when I add the following line to my script, I get an run-time error:

PrintJob.SetProfileSetting "PdfSettings.OpenViewer", "false"
PrintJob.ConvertTo SavePath

image

At this point, Excel is broken and I have to exit Excel and re-load. Comment the line out and it works fine.

Posts: 3

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2632

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>