---
title: "Uniprint Suite - Rundll32 Printui Error: Operation could not completed"
slug: "uniprint-suite-rundll32-printui-error-operation-could-not-completed"
updated: 2024-04-10T17:11:35Z
published: 2024-04-10T17:11:35Z
canonical: "kb.pharos.com/uniprint-suite-rundll32-printui-error-operation-could-not-completed"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.pharos.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Uniprint Suite - Rundll32 Printui Error: Operation could not completed

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:

1. Checked the batch file
2. Checked the Rundll command
3. Tested the drivers
4. It seems to only happen with this particular driver
5. Error does not occur on the machine where you create the .dat file

---

Complete the workaround (run a registry key from the batch file):

1. 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:
  1. Run Reg Mon.
  2. Apply the setting to driver.
  3. Check Reg Mon to see which key was updated.
2. 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](http://www.computerhope.com/reg.htm)

###

## Related

- [How to modify reports to exclude holiday days.](/how-to-modify-reports-to-exclude-holiday-days.md)
- [Unable to upgrade Pharos Database, error "Database master not recognized as a PHAROS database."](/unable-to-upgrade-pharos-database-error-database-master-not-recognized-as-a-pharos-database.md)
