Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Runtime Error 482 - Printer Error

Posted on 2004-10-25
13
Medium Priority
?
8,297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

618 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