Solved

Runtime Error 482 - Printer Error

Posted on 2004-10-25
7,346 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
Question by:Ashutosh Vyas
    12 Comments
     
    LVL 2

    Expert Comment

    by:koolnurd
    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
    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
    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
     
    LVL 8

    Author Comment

    by:Ashutosh Vyas
    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
    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
    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
    Got it solved all by myself thanks to all
    0
     
    LVL 5

    Expert Comment

    by:abith
    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
    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
    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
    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:
    PAQd, 125 points refunded.

    GhostMod
    Community Support Moderator
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Foundations of Front-End Development

    Jump-start a lucrative career in front-end web development, with zero previous coding experience required. This course covers the basic programming concepts and languages required for creating engaging websites from scratch.

    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…
    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…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

    884 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now