2014-02-06 193 views
0

我正在使用Visual Foxpro 9,我想在报告(frx)中打印Unicode字符。 有一些方法可以扩展报告监听器以显示unicode。我需要代码来扩展/显示reportListner以显示unicode。Visual FoxPro 9.0报告显示unicode

+0

这可以很方便:http://stackoverflow.com/questions/13612627/foxpro-google-translate-and-unicode/13613750 –

回答

1

我从来没有与任何VFP内的Unicode工作,或者花费任何时间与报告工作,但帮助了ReportListener的的Render方法确实提到的Unicode:

cContentsToBeRendered

Indicates the text to be rendered for Expression (Field) and Label layout elements. 
For Picture layout elements sourced from a file, cContentsToBeRendered contains the filename. 

When specifying a filename for an image, ReportListener provides cContentsToBeRendered 
as a DBCS string, which is the standard format for strings in Visual FoxPro. 
However, when indicating text to be rendered, ReportListener provides 
cContentsToBeRendered as a Unicode string, appropriately translated to the correct 
locale using any regional script information associated with this layout control in 
its report definition file (frx) record. 

If your derived class sends the text value through some additional processing, such as 
storage in a table, you can use the STRCONV() function, and its optional regional 
script parameter, to convert the string to DBCS first. For more information, see 
STRCONV() Function. 
0

虽然我可能不正确,但我相信VFP不支持UniCode,只能用于基本ASCII字符集。但是再一次,我从来都不需要使用Unicode,并且从使用寿命开始就使用了FoxPro。