Problem with Printer.Orientation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce Adams

    Problem with Printer.Orientation

    I am using VB6 SP6. I have an application that prints charts. Specifically,
    it prints line charts of plant process information nightly. The code is a
    mix of API calls and Printer methods. I am currently migrating to a new PC
    running XP. The charting application is hanging on a single line of code:

    Printer.Orienta tion = vbPRORLandscape

    It throws an error '484', "Problem getting information from the printer.
    Make sure printer is set up correctly."

    I am setting other printer parameters without problems. I can GET
    orientation no problem:

    pOldOrientation = Printer.Orienta tion

    If I comment out just the "Printer.Orient ation = vbPRORLandscape " line, it
    works fine, just in the wrong orientation. This application has worked fine
    in Win98, Win98SE and Win2K. I have been Googling this for hours and can't
    find a solution. Has anyone here experienced this? If yes, how did you solve
    it?

    TIA,
    Bruce


  • Dikkie Dik

    #2
    Re: Problem with Printer.Orienta tion

    Looks like a printer driver error. My suggestion is that you look for a
    workable version of the printer driver. I think it is the only way to
    convince your printer that it isn't an archaic daisywheel printer.

    Good luck!

    Bruce Adams wrote:[color=blue]
    > I am using VB6 SP6. I have an application that prints charts. Specifically,
    > it prints line charts of plant process information nightly. The code is a
    > mix of API calls and Printer methods. I am currently migrating to a new PC
    > running XP. The charting application is hanging on a single line of code:
    >
    > Printer.Orienta tion = vbPRORLandscape
    >
    > It throws an error '484', "Problem getting information from the printer.
    > Make sure printer is set up correctly."
    >
    > I am setting other printer parameters without problems. I can GET
    > orientation no problem:
    >
    > pOldOrientation = Printer.Orienta tion
    >
    > If I comment out just the "Printer.Orient ation = vbPRORLandscape " line, it
    > works fine, just in the wrong orientation. This application has worked fine
    > in Win98, Win98SE and Win2K. I have been Googling this for hours and can't
    > find a solution. Has anyone here experienced this? If yes, how did you solve
    > it?
    >
    > TIA,
    > Bruce
    >
    >[/color]

    Comment

    Working...