Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Runtime error on Papersize 11x17

Posted on 2000-04-24
4
Medium Priority
?
217 Views
Last Modified: 2008-03-17
I am trying to print a Flexgrid and set the Papersize to 11x17.  When ever I do it gives me Runtime Error 380(Invalid Property Value).  This is trying to print to a HP 8000 PS Laserjet which has 11x17 in tray 3.  The grid will print on Legal and 8 1/2 x 11.  How do I get it to take the 11x17 papersize?  I have tried setting the value in both numeric and text.  Neither works.  
0
Comment
Question by:kburg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 100 total points
ID: 2744473
I suspect that the printer may support a papersize of 11 x 17, but not all of that is printable. Try using GetDeviceCaps on the printer, reading
PhysicalHeight, PhysicalWidth, etc....
from the win32API help file:


PHYSICALWIDTH      For printing devices: the width of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical width value of 5100 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALHEIGHT      For printing devices: the height of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical height value of 6600 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALOFFSETX      For printing devices: the distance  from the left edge of the physical page to the left edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the leftmost 0.25" of paper, has a horizontal physical offset of 150 device units.
PHYSICALOFFSETY      For printing devices: the distance  from the top edge of the physical page to the top edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the topmost 0.5" of paper, has a vertical physical offset of 300 device units.
0
 

Author Comment

by:kburg
ID: 2746974
We use the 11x17 paper to print a Excel spreadsheet and it covers the entire paper.  So, it should work. Also, even though the grid is larger than a 8.5x11 it will print, but runs off the paper.
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2747618
The fact that Excel will print it without running off the paper only means that Excel has taken the precaution that I am advising you take, check the actual printable region of the printer's canvas and use that for your print job.Your current printing process, from what you describe , assumes that the printer is going to give you a full 11x17 printable area. This is almost never the case (note my previous post).

Good luck!!
0
 

Author Comment

by:kburg
ID: 2755975
Thanks for your help
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question