473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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
1 10936
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hari krishna | last post by:
hi, i am using window.print to print some details that are fetched on to an ASPX page. since its a long list, it should be printed in Landscape. when window.print command is executed, a printer...
0
by: Yelena Kaplun | last post by:
Hi, I'm trying to customize print settings while streaming HTML content into Excel. I'm using ASP.NET 1.1 and Excel 2003. While some printer settings like Margins are working correctly, I cannot...
3
by: Rick Collard | last post by:
I have been experimenting with the new Printer object in Access 2002 and discovered some unexpected database bloat. Simply assigning the same value to a property of a report's Printer object will...
2
by: jess | last post by:
Hi All, I am using the PrtDevMode property of a report open in design view to try and flip the orientation of the report between Portrait and Landscape in a user control box before the report is...
0
by: Gas | last post by:
I am using a 3rd party control that has a print function. But it doesn't provide any way that we can change some of the printer setting in design time. (It will popup the print dialog in runtime)...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
3
by: Giovanni Benedetti | last post by:
Hi everybody, sorry for my English first of all. I've an ASP page (ASP 3.0) used on an intranet which fill up some particular Mail sheets getting data from a database. Those pre-compiled sheets...
2
daniel aristidou
by: daniel aristidou | last post by:
Hi i wrote code to print records off a datagrid.the code works on all but one of my data grids. The problem is that loop continues without stopping, Causing the program to crash. The only diff...
4
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.