General information
Category:
Reports & Report designer
呵呵, fbilo 这个问题你也应该到动感游标上问,我记得有帮国内的李拥军解决过这个问题。
这个问题出在 xmllistener 类上,里面默认的字符集是用 UTF-8 ,而你的报表里带了中文字符,所以,必然出来一个空的 HTML 文件。
解决办法是,修改 listener.vcx --> xmllistener --> applyUserTransformToOutput
修改以下两个地方,
第一个地方,原语句* lcResult = THIS.ApplyXSLT(FILETOSTR(THIS.TargetFileName),THIS.XSLTProcessorUser, THIS.XSLTParameters)
修改为:
lcResult = THIS.ApplyXSLT(STRCONV(FILETOSTR(THIS.TargetFileName),11),THIS.XSLTProcessorUser, THIS.XSLTParameters)
第二个地方,原语句
* STRTOFILE(STRTRAN(lcResult,THIS.SaveTargetFileName)
修改为
STRTOFILE(STRTRAN(lcResult,'charset=UTF-8','charset=gb2312'),THIS.SaveTargetFileName)
然后如果你用的是 reportoutput.app , 那你重新编译一下 reportoutput.app , reportoutput.app 源代码在 Xsource 里有。
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only