PDF-XChange Pro 10.7.6.404
I'm trying to load a printer profile using rundll32 using the following command line:
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command /InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" /PrinterName:"PDF-XChange Standard" /ForUser
The command executes without any errors but viewing the Printer Preferences, the "Profile:" name does not indicate the new profile name:
Before running the command:
After running the command:
Notice the profile name did NOT change under Printer Preferences.
The InstallProfile and PrinterName do indeed exist.
Can't load printer profile from command line
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange
-
ragkag
- User
- Posts: 17
- Joined: Sat Jun 10, 2023 1:38 pm
Can't load printer profile from command line
You do not have the required permissions to view the files attached to this post.
-
Sean - PDF-XChange
- Site Admin
- Posts: 485
- Joined: Wed Sep 14, 2016 5:42 pm
Re: Can't load printer profile from command line
Hi ragkag,
The issue here is that you are installing the profile, but not activating it.
Note that /InstallProfile only imports the profile into the printer, it does not switch the printer to use that profile unless either:
you add /AsDefault, or you use /SetDefProfile:"Profile Name"
There are a couple of ways you can resolve this:
Option 1 - install, and make it the default printer:
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser ^
/AsDefault
Option 2 - install it, then explicitly set the default:
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/SetDefProfile:"Offsite HardCopy" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser
Note that you need to make sure that "Offsite HardCopy" exactly matches the internal profile name (not the filename).
Kind regards,
The issue here is that you are installing the profile, but not activating it.
Note that /InstallProfile only imports the profile into the printer, it does not switch the printer to use that profile unless either:
you add /AsDefault, or you use /SetDefProfile:"Profile Name"
There are a couple of ways you can resolve this:
Option 1 - install, and make it the default printer:
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser ^
/AsDefault
Option 2 - install it, then explicitly set the default:
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser
rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/SetDefProfile:"Offsite HardCopy" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser
Note that you need to make sure that "Offsite HardCopy" exactly matches the internal profile name (not the filename).
Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
-
ragkag
- User
- Posts: 17
- Joined: Sat Jun 10, 2023 1:38 pm
Re: Can't load printer profile from command line
Thanks for the quick response. Works fine now. You can close this request.
-
Sean - PDF-XChange
- Site Admin
- Posts: 485
- Joined: Wed Sep 14, 2016 5:42 pm
Re: Can't load printer profile from command line
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623