Page 1 of 1

TPrinter:SayBitMap() problem.

Posted: Thu May 25, 2006 5:52 am
by Milan Mehta
Dear All,

As part of Invoice printing I am printing logo (BMP file) of the company on the invoice using SayBitMap() method of printer class. The problem is it prints in diff sizes on different printer as the resolution of the printer differs.

Is there anyway by way of which I can define height and width in Inches so that it prints in the same area irrespective of printer.

TIA
Milan.

Re: TPrinter:SayBitMap() problem.

Posted: Thu May 25, 2006 6:50 am
by Enrico Maria Giordano
Yes. Use oPrn:Inch2Pix() method to calculate pixel from inches.

EMG

Posted: Fri May 26, 2006 2:13 am
by James Bott
Milan,

Have you tried the nWidth and nHeight parameters of sayBitmap()?

SayBitmap( nRow, nCol, xBitmap, nWidth, nHeight, nRaster )

James