FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PRINT oPrn:CmSay PADDING is NOT Working
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
PRINT oPrn:CmSay PADDING is NOT Working
Posted: Sun Jul 28, 2019 10:25 AM
Dear All ,

I am using PRINT Object to print some reports. In the CMSay Method nPad Parameter is for padding as given below.

In the Preview do not see PADDING RIGHT. Could you please help on this...!

Code (fw): Select all Collapse
   //METHOD CmSay( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad, lO2A );
   oPrn:CmSay( nPRow , 14.00, Transform(oRsAcctOSBList:BILL_AMOUNT,"@Z 99,99,99,999.99"), oFont ,2.34, PAD_RIGHT )


Thanks
Shridhar
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: PRINT oPrn:CmSay PADDING is NOT Working
Posted: Sun Jul 28, 2019 09:23 PM
Please try the more recent syntax and method like:
Code (fw): Select all Collapse
@ nPRow, 14.00 SAY TO oPrn TEXT Transform(oRsAcctOSBList:BILL_AMOUNT,"@Z 99,99,99,999.99") SIZE 2.34 CM FONT oFont ALIGN "TR"
Regards



G. N. Rao.

Hyderabad, India
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: PRINT oPrn:CmSay PADDING is NOT Working
Posted: Mon Jul 29, 2019 05:08 PM
Dear Sir ,

Have used below command but it is NOT printing properly as second command.

Code (fw): Select all Collapse
@ nPRow, 07.81 PRINT TO oPrn TEXT Transform(oRsAcctOSBList:BAL_AMOUNT,"@Z 99,99,99,999.99") SIZE 2.00 CM FONT oFont ALIGN "TR"


This Command Print Properly as expected. Sorry I had done mistake in the earlier Posted Command.
Code (fw): Select all Collapse
 oPrn:cmSay( nPRow , 07.81, Transform(oRsAcctOSBList:BAL_AMOUNT ,"@Z 99,99,99,999.99") ,  oFont ,02.00,CLR_BLACK,,PAD_RIGHT )


Thanks
Shridhar
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB

Continue the discussion