Solved

Runtime error on Papersize 11x17

Posted on 2000-04-24
4
209 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
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 25 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now