How To Fix Runtime Error 482
The Runtime 482 Error arises when the user attempts to utilise the “PrintForm” protocol. More specifically, when the user attempts to change a page level setting (such as Orientation) the Runtime Error 482 is shown due to either a damaged part of your system or a corrupt file causing the damage. This error is typically present on older computers using the operating systems Windows 95, 98, ME, NT, or 2000; and can arise at seemingly random times. Here’s how to fix this error:
What Causes Runtime Error 482
The error may show itself as:
Run-time error ‘482’: Printer Error
These errors usually arise from the use of PrintForm on older Windows operating systems, however the timing of the error various from operating system. For example, in Windows 2000 and NT the error can occur even if the user succesfully completed one call to PrintForm. In older Windows, this error can occur even during the first call to PrintForm. To resolved this issue, please follow the steps below.
How To Fix Runtime Error 482
Step 1 – Do Not Use “PrintForm”
By not using PrintForm you are avoiding any possible conflict with the utility. Although this not a fix, it is a very effective workaround, which normally works every time. To stop using PrintForm, follow the steps below for Windows 2000 and NT:
- Calling the EndDoc method after the call to PrintForm fixes the problem.
For older Windows Operating Systems:
- Calling the EndDoc method before the call to PrintForm skirts the problem but any settings made to the Printer object are lost. This means that PrintForm uses the settings of the current default printer.
- Use the Common Dialog control to change page properties instead of direct assignments to the properties of the Printer object.
The EndDoc method (For Windows 2000 and NT):
- Using Win32 API (Application Programming Interface) enter this code:
Private Sub Form_Click() Printer.Orientation = vbPRORPortrait PrintForm Printer.EndDoc Printer.Orientation = vbPRORLandscape PrintForm End Sub
For older Windows Operating Systems use this EndDoc method:
- Using Win32 API, type this code
Private Sub Form_Click() Printer.Orientation = vbPRORPortrait Printer.EndDoc PrintForm Printer.Orientation = vbPRORLandscape Printer.EndDoc PrintForm End Sub
Running this will allow you to stop the error occurring and to run without this error. Alternatively, if that fails to work, try the follow step.
Step 2 – Clean Out The Registry
The registry can also be a big cause of the Runtime 482 error. If you’re not aware of what this part of your system is, it’s basically a central storage facility for all the settings and options that your computer needs to run. The registry database is home to everything from your desktop theme to your latest emails, and is also where a lot of the printer settings are kept for your system as well. Unfortunately, it’s also prone to becoming corrupt and damaged, leading your system to load up slowly and with a lot of errors. To fix this problem, it’s recommended you use a registry cleaner to keep your system and your registry clean. You can see our recommended registry cleaner below: