Runtime Error 482 - Printer Error

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
LVL 8
Ashutosh VyasFounder, InitQubeAsked:
Who is Participating?
 
GhostModCommented:
PAQd, 125 points refunded.

GhostMod
Community Support Moderator
0
 
koolnurdCommented:
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
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
All those conditions are already checked.
Remember that running simultaneously, the problem arises in one application and the other one runs quite flawlessly.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
abithCommented:
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
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
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
 
abithCommented:
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
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
Adding Printer.Print statement before this gives the same error.

Even after adding the Printer.EndDoc statement i get the same error.
0
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
Got it solved all by myself thanks to all
0
 
abithCommented:
hi

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

Regards
Abith .K
0
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
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
 
abithCommented:
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
 
Ashutosh VyasFounder, InitQubeAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.