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

Automating printing of PDF with newest PDFcreator with Excel VBA

$
0
0

@Okitoki wrote:

We're still working with PDFCreator version 1.6.2 on Windows 7, due to a migration to Windows 10 our solution in Excel VBA doesn't work anymore.

On Windows 7 following code worked

Do
'PDF print
Dim oWSH3 As New WshShell
Dim IEview As Object
Dim oSH As WshNetwork
Set oSH = New WshNetwork

oSH.SetDefaultPrinter "PDFCreator"

Set oSH = Nothing

Const sKey3 = "HKCU\Software\PDFCreator\Program\AutosaveDirectory"
oWSH3.RegWrite sKey3, "\\localserverpath\FolderA\" & variableNumber & "\detail\", "REG_SZ"

Set IEview = New InternetExplorerMedium
IEview.Navigate 'exampleweb'

Now on Windows 10 the code above still works, but it only fills in the right Path in AutosaveDirectory (Target Folder) for one time.

For instance, it fills in "\localserverpath\FolderA\1\detail" the first time of the loop but the second the time it still keeps "\localserverpath\FolderA\1\detail" but it should be "\localserverpath\FolderA\2\detail" as this is working in Windows 7

The print monitor needs to be open otherwise the printing wouldn't work (this is only happening in Windows 10)

Can this automatization be done with the newest version of PDFCreator? Has anyone done this with VBA

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2619

Trending Articles



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