- 10 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Uniprint Suite - Rundll32 Printui Error: Operation could not completed
- Updated on 10 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
When the following is run in a custom module:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n "Printer Name" /a c:\file.dat
It returns the error "Operation could not complete"
The following checks have been completed:
Checked the batch file
Checked the Rundll command
Tested the drivers
It seems to only happen with this particular driver
Error does not occur on the machine where you create the .dat file
Complete the workaround (run a registry key from the batch file):
You will need to export the printer setting from the registry into a file (you perform this on an XP machine that has the correct settings).
Registry location: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\”Printers name”\PrinterDriverData]
If this is the wrong location for the setting, perform the following:Run Reg Mon.
Apply the setting to driver.
Check Reg Mon to see which key was updated.
Create a batch file to install the registry. Batch file command to load the registry is: Reg import
Type this command in the DOS prompt. The batch file will run as part of the custom package. The printer will be installed, then the batch file will apply the registry key.
Registry key command help: http://www.computerhope.com/reg.htm