467,080 Members | 930 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

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.Orientation = 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.Orientation

If I comment out just the "Printer.Orientation = 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
Jul 17 '05 #1
  • viewed: 10596
Share:
1 Reply
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:
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.Orientation = 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.Orientation

If I comment out just the "Printer.Orientation = 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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rick Collard | last post: by
reply views Thread by Gas | last post: by
1 post views Thread by Karthic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.