News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

size problems with various printers

Started by shankle, August 15, 2007, 08:22:45 PM

Previous topic - Next topic

shankle

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]
The greatest crime in my country is our Congress

shankle

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.....
The greatest crime in my country is our Congress

Tedd

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
No snowflake in an avalanche feels responsible.