By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

Problem with Printer.Orientation

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.