PRINT oPrn:CmSay PADDING is NOT Working

Post Reply
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

PRINT oPrn:CmSay PADDING is NOT Working

Post 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
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: PRINT oPrn:CmSay PADDING is NOT Working

Post 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"
 
Regards

G. N. Rao.
Hyderabad, India
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: PRINT oPrn:CmSay PADDING is NOT Working

Post 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
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
Post Reply