FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TPrinter:SayBitMap() problem.
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM
TPrinter:SayBitMap() problem.
Posted: Thu May 25, 2006 05: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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: TPrinter:SayBitMap() problem.
Posted: Thu May 25, 2006 06:50 AM

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

EMG

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
TPrinter:SayBitMap() problem.
Posted: Fri May 26, 2006 02:13 AM

Milan,

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

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

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion