Solved

Runtime error on Papersize 11x17

Posted on 2000-04-24
4
212 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

770 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