0

Windows error 91 problem with printing

PROBLEM:

Customer is using RetirementView on Windows XP SP3 machine.

When printing anything, he would get "Error 91 object or with variable could not be created" and program would crash.

 

SOLUTION:

First, checking the disclaimers and other text did not solve the problem, so it was not a bad character pasted into that text.  I checked that by renaming the CUST.INI file so that it was not even used.

Second, realized thru testing that any attempt to print failed with the Error 91 and crashed program, which means program could not instantiate the printer dialog.

Third, checked C:\Windows\System32 to make sure this file was there and existed: VBPrnDlg.DLL

Fourth, decided to see if re-registering that DLL fixed the problem.

The solution was to hand register VBPrnDlg.DLL which was on the machine in System32 but was NOT registered. So whenever we tried to print and bring up the windows "select a printer" dialog, it would crash program trying to create the printer dialog object.

We don't know why the installer is not registering the DLL properly. I double checked the Pro installer and it is set to register that as a DLL.

To hand register such an object, you have to go under Start -> Run and then enter "cmd" without quotes to open the command line tool in windows.
- then change dir until you are at: C:\Windows\System32
- then type this in and hit enter or return: regsvr32 VBPrnDlg.DLL

Obviously that file has to exist and in that directory for this to work.

Closing the ticket.

0 comments

Please sign in to leave a comment.