Fix Runtime Error 482

In this article, we will discuss an instance of runtime error 482 that may occur when using PrintForm on Windows 95, 98, ME, NT, and 2000 computers.


When you use a code that calls the PrintForm function after you changed a page level setting, you may receive one or more of the following error messages:

“Run-time error ‘482’: Printer Error”

“Run-time error ‘486’: Can’t print form image to this type of printer”

“Printer Error”

In Microsoft Windows NT and Windows 2000, the first call made to PrintForm after changing settings may work fine, however, the subsequent attempts may fail with one or more of the above errors.

In Microsoft Windows 95, Windows 98, and Windows ME computer, even the first call made to PrintForm function after a page level setting is altered fails with one or more of the errors reported above.  

Workaround Methods

You can workaround the above problem by employing WIN32 API (Application Programming Interface) code, instead of using PrintForm function.

On Windows NT and Windows 2000 computers, use the EndDoc function after the call to PrintForm to resolve the issue.

On Windows 95, Windows 98, and Windows ME computers also use the EndDoc function before the call to PrintForm to fix the problem.

Although this solution works, you will lose any settings made to the Printer Object, which implies that PrintForm uses the settings of the current default printer.

So, you may use the Common Dialog control to modify the page properties instead of using direct assignments.

You may refer to the Microsoft Knowledgebase to find out more about how to use EndDoc function or Common Dialog control in codes to rectify the above issue.

Miscellaneous Causes of Runtime Error 482 and Runtime Error 486

You may also experience runtime errors and other printer-related issues in case your PC is infected with malware, your system registry is corrupt, or your printer drivers are outdated.

To prevent runtime errors from occurring due to malware infection, install reliable and advanced security tools, such as STOPzilla Antivirus and Spyware Cease. To ensure your computer is protected from the latest malware, schedule regular malware scans and regularly update your security software with the latest malware definitions and security updates.

A corrupt or damaged registry may also cause runtime errors and printer-related errors. To avoid such a situation, regularly clean your Windows registry using an efficient registry cleaning utility, such as RegServe.

Last but not least, to prevent various printer-related errors, use the latest printer drivers. You may use a reliable driver scanner tool, such as Driver Finder to ensure that your printer and other device drivers are automatically updated.