The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: shankle on August 15, 2007, 08:22:45 PM

Title: size problems with various printers
Post by: shankle on August 15, 2007, 08:22:45 PM
The attached sample data (sstally) filled an 8 1/2 by 11" sheet of paper  using
an HP Officejet model 710. I used the same program with a new HP Officejet
model L7580 and the printing was squeezed into the upper left quadrant of
the paper. I have read the documentation for the printer and it is of no help
whatsoever. I have also sent an E-mail to HP about the problem and have
received no reply as yet.
Partial code is attached (spgtally). I rather doubt that "EnumPrinters" is
the culprit as it did print the data but squeezed.
Running Windoze XP Pro, MASM32, HP Officejet Pro L7580.
Thanks for any help.
JPS
 

[attachment deleted by admin]
Title: Re: size problems with various printers
Post by: shankle on August 18, 2007, 05:07:16 PM
I can get the output to fill the page by increasing the H/V figures.
I think this means that the number of pixels for one line of data
is much greater in the Officejet L7580 than it was in the Officejet
710. The 710 printer is 6+ years old and evidently there have been
a lot of changes in printer technology.
Who knows what will happen if my program is run on other non
photo printers.....
Title: Re: size problems with various printers
Post by: Tedd on August 18, 2007, 10:26:29 PM
I would take a guess that your problem is caused by differing DPI (dots per inch) settings/capabilities for each printer (photo printers will obviously have a higher DPI capability, so the same number of pixels will fit into a smaller area.)
How to solve it is another matter :lol
My first attempt would be using a PRINTER_INFO_2 structure, instead of the minimal '5' structure you're currently using - not sure if that will magically fix everything though :P