TPrinter:SayBitMap() problem.

TPrinter:SayBitMap() problem.

Postby Milan Mehta » Thu May 25, 2006 5:52 am

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.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Re: TPrinter:SayBitMap() problem.

Postby Enrico Maria Giordano » Thu May 25, 2006 6:50 am

Yes. Use oPrn:Inch2Pix() method to calculate pixel from inches.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8419
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Fri May 26, 2006 2:13 am

Milan,

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

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

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests