Please look it. Preview user name not OK.
This is a user name problem
- Code: Select all Expand view
::cE_NAMEx := ::Transfor_Data( AllTrim(::cE_NOm) )
::oPrn:CmSay( 1.75, 1 , "編 號:[ " + AllTrim(::cE_NOm) + " ]" )
::oPrn:CmSay( 1.75, 5 , "姓 名:[ " + AllTrim(::cE_NAMEx) + " ]" )
METHOD Transfor_Data( cData ) CLASS TRpt_EmployeeSalaryDataMsf
LOCAL cTmpData := ""
cData := AllTrim( cData )
::oEmployeeMsfDBx:cQuery := "SELECT * FROM EmployeeMsf WHERE E_NO = '"+cData+"' LIMIT 1 AND COMP_NO ='"+AllTrim(Left(cCP_NO,3))+"' "
::oEmployeeMsfDBx:Refresh()
IF ::oEmployeeMsfDBx:LastRec() <> 0
cTmpData := FW_UTF8PADCHAR(::oEmployeeMsfDBx:E_NAME, 10) //=>MsgInfo User name No problem
RETURN cTmpData
ELSE
RETURN cTmpData
ENDIF
RETURN cTmpData
This is Item name No problem.
- Code: Select all Expand view
::oPrn:CmSay( nPrnRow, 0.5, HB_UTF8SUBSTR(::oEmployeeSalaryMsfDB:ITMNM,1,16), , , , )
::oPrn:CmSay( nPrnRow, 7 , Transform( ::oEmployeeSalaryMsfDB:SRYAT,"9,999,999")+" 元", , , , )