Your code mixed two different pdf-printer and therefore it couldn't work. Further I don't know if and how the target-path from PDF-XChange could be adjusted but there is a workaround which prints everything with the same name to the same path and moving and renaming it afterwards. The howto for it could you find here: generate-pdf-with-Xchange.
I tried to change my VB code following the post you linked.
Now, my new code is:
Sub Print_PDF ActiveDocument.PrintReport "RP01", "PDF-XChange 3.0", false Set objFSO = CreateObject("Scripting.FileSystemObject") ''If the folder not exists then -> create if Not objFSO.FolderExists("C:\Users\ext_onit_dwh\Documents") Then Set newfolder = objFSO.CreateFolder("C:\Users\ext_onit_dwh\Documents") End If PDFFullName = "C:\Users\ext_onit_dwh\Documents\Report_giornaliero.pdf" 'If the file exists then -> delete If objFSO.FileExists(PDFFullName) then objFSO.DeleteFile PDFFullName End If objFSO.MoveFile "C:\Users\ext_onit_dwh\Documents", PDFFullName Set objFSO = Nothing ActiveDocument.GetApplication.Sleep 2000 End Sub
But it doesn't work.
Do you explain me if you find something wrong into the code below?