PRINT oPrn:CmSay PADDING is NOT Working

PRINT oPrn:CmSay PADDING is NOT Working

Postby shri_fwh » 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: Select all  Expand view


   //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
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: PRINT oPrn:CmSay PADDING is NOT Working

Postby nageswaragunupudi » Sun Jul 28, 2019 9:23 pm

Please try the more recent syntax and method like:
Code: Select all  Expand view
@ 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
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: PRINT oPrn:CmSay PADDING is NOT Working

Postby shri_fwh » Mon Jul 29, 2019 5:08 pm

Dear Sir ,

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

Code: Select all  Expand view

@ 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  Expand view


 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
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 106 guests