?
Solved

Runtime Error 482 - Printer Error

Posted on 2004-10-25
13
Medium Priority
?
8,624 Views
Last Modified: 2013-12-26
Hi all

I have created a print preview kind of option for my application. It runs well in one application but generates an error in the other one. could someone please tell me about the following error:
I have tried all sorts of solutions to this problem.

RunTime Error # 482
"Printer Error"

on the following line of code

Printer.Orientation = CommonDialog1.Orientation

Thanks in advance
Ashutosh

PS - The printer selected is a Network Printer
0
Comment
Question by:Ashutosh Vyas
12 Comments
 
LVL 2

Expert Comment

by:koolnurd
ID: 12398865
This error has the following cause and solution:

An error occurred at the printer, but no other information was returned to the computer that sent the file.
You must physically examine the printer. Make sure all connections between computer and printer are solid. Most printers provide a display for error information such as "Out of paper," "Offline," and so on.

And Check for, whether the current user or the PC has default rights to printer devices.

0
 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12399110
All those conditions are already checked.
Remember that running simultaneously, the problem arises in one application and the other one runs quite flawlessly.
0
 
LVL 5

Expert Comment

by:abith
ID: 12399776
Hi

if it is a text or a pdf printer then the landscape orientation will not be supported.  else check weater the printer has the orientation property.

Regards
Abith .K
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12407573
Well it is a normal HP Laserjet 1100 printer connected over the network to the server.

All connections, services drivers etc all checked and are perfectly running so that doesn't seem to be a problem.

Moreover it is working well with the other application but not with this one even when i am using the same module for both of them.
0
 
LVL 5

Expert Comment

by:abith
ID: 12407870
Hi

Printer.Orientation = CommonDialog1.Orientation

before this coding have you already intiate the printer.  like printer.print statements.  because after this line the statement will give error.  or add this statment.

Printer.EndDoc
Printer.Orientation = CommonDialog1.Orientation

And give this message.  

Regards
Abith . K
0
 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12407904
Adding Printer.Print statement before this gives the same error.

Even after adding the Printer.EndDoc statement i get the same error.
0
 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12419473
Got it solved all by myself thanks to all
0
 
LVL 5

Expert Comment

by:abith
ID: 12419618
hi

what was the error and how did you solve it will be useful for me if you share that.

Regards
Abith .K
0
 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12419647
Sure,

It was a silly one, though not sure if it was at all
The printer driver was creating the problem or the network, because i installed a local pdfwriter as printer and the code works well with that so we are left with two things
1. The Network
2. The Printr Driver

0
 
LVL 5

Expert Comment

by:abith
ID: 12477560
Hello  ee_ai_construct

I given the answer for his question in my first reply that is

     if it is a text or a pdf printer then the landscape orientation will not be supported.  else check weater the printer has the orientation property.


and the same answer he has said to me in the last reply.


Regards
Abith .K
0
 
LVL 8

Author Comment

by:Ashutosh Vyas
ID: 12480082
But the thing is i m still using that orientation line and that too without any problems with pdf writer, where as even if i remove the orientation line, it still gives the same error on the network printer so i dont think your answer fits well enough

Thanks
Ashutosh
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12519688
PAQd, 125 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question