Page 1 of 1

PRINT oPrn:CmSay PADDING is NOT Working

Posted: Sun Jul 28, 2019 10:25 am
by shri_fwh
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: Select all


   //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

Re: PRINT oPrn:CmSay PADDING is NOT Working

Posted: Sun Jul 28, 2019 9:23 pm
by nageswaragunupudi
Please try the more recent syntax and method like:

Code: Select all

@ 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"
 

Re: PRINT oPrn:CmSay PADDING is NOT Working

Posted: Mon Jul 29, 2019 5:08 pm
by shri_fwh
Dear Sir ,

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

Code: Select all

@ 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: Select all


 oPrn:cmSay( nPRow , 07.81, Transform(oRsAcctOSBList:BAL_AMOUNT ,"@Z 99,99,99,999.99") ,  oFont ,02.00,CLR_BLACK,,PAD_RIGHT )
               
 
Thanks
Shridhar