Board index » delphi » REQ: Help with print sizing on any printer (Delphi 6)

REQ: Help with print sizing on any printer (Delphi 6)

i've designed a printer program that must print a label to a specific size on
any printer i've tried a HP PSC 500 and a Epson 400 but the print size came out
differently can i read the printer size with
printers.canvas.pagewidth/pageheight what is the code i need for working out
size in MM so i can use printer.canvas.stretchdraw

also i someone can explain what a printer.pagewidth is, ie Pixels, MM or other.

thanks in advance to all who look and answer

karl

 

Re:REQ: Help with print sizing on any printer (Delphi 6)


PageHeight and PageWidth are in pixels.

You can retrieve info about the printer with the GetDeviceCaps(..) function.
See win32.hlp for details.

Alfred.

"RetroCGS" <retro...@aol.com> schreef in bericht
news:20011017143454.01572.00000283@mb-mm.aol.com...

Quote
> i've designed a printer program that must print a label to a specific size
on
> any printer i've tried a HP PSC 500 and a Epson 400 but the print size
came out
> differently can i read the printer size with
> printers.canvas.pagewidth/pageheight what is the code i need for working
out
> size in MM so i can use printer.canvas.stretchdraw

> also i someone can explain what a printer.pagewidth is, ie Pixels, MM or
other.

> thanks in advance to all who look and answer

> karl

Other Threads