473,624 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Printer.Orienta tion

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
Jul 17 '05 #1
1 10949
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.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

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
554
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 settings dailogue box is appeared and need to set the orientation to landscape. I need to give my user a facility to print it in Landscape orientation automatically. How to setup landscape for the orientation in printer settings through the
0
2027
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 change the Page Orientation to Landscape: mso-page-orientation:landscape;. I tried to produce the Excel Page, save it as HTML, open in text editor and then copy and paste Excel generated settings. But it did not help. If anybody resolved this...
3
2653
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 cause the database to grow. Here's my test code: Public Sub ChangeReportSettings( _ sReport As String, _ sDeviceName As String, _ Optional nIterations As Long = 1)
2
4645
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 opened. I pretty much used the example out of the help verbatim and Im not having any luck with it working. I thought originally that because some of my controls (Lines) extended to the right margin of the report (designed in Landscape) that...
0
1237
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) What I need to do is to change the default orientation of the printing. I want to preform a hack to set the orientation of the global printer object (whatever it's name in C#) before I call the print method of the 3rd party contorl.
1
12159
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 know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
3
5551
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 are then showed in IE 6 for checking and then have to be printed. To correct printing the sheets I have to change the print margins and paper orientation from IE 6 settings. Reading around it looks like I can't change IE 6 print settings without
2
1517
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 between all of the grids is the query and the widows form it is on. I basicly just copied the form changing the SQL for the datasource. any way so here is the code i typed: Private Sub Print_Click() Dim msg As Variant Dim spaceaftercolumn1 As Variant...
4
16795
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 Tip to these Topics. The Tip will actually consist of several Tips which I feel are very useful for all Users, from Newbies to Experts. In order to utilize the code contained within these Tips, you must have Access 2002 or later. How can I...
0
8677
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.