Hi All,
Have stored sample data in English, French and Chinese in xml Reading it through a c#.net function.
loading as follows:
public string getContent( string langcode)
{
XmlDocument doc = new XmlDocument();
XmlNode EntryNode;
doc.Load(@"C:\dataDict.xml");
EntryNode = doc.SelectSingleNode("/multilingual/language");
string test = EntryNode.InnerText;
return (test);
}
XML file as follows:
<multilinugal>
<language> ?? </language>
</multilingual>
Accessing the function in crystal report 10.
if the text in xml is English or French like:
<multilinugal>
<language> helo</language>
</multilingual>
then data is displayed in the crystal report.
If it is Chinese or Japanese data, it is displayed as ????? in crystal report. Tried to change the conditional font for that field in CR10 using "NSimSun". But still it displays ????.
Thr problem may be, I am storing and retuning the chinese font in a string data type. I read char supports unicode. I tried to change code as follows:
char[] cc;
val="??";
cc=val.ToCharArray();
return(cc)
and made function to return char[].
the result does not show up. Stuck up.
Any clues, appreciated! returning unicode fonts from a function.
(this one posted in xml and crystal report forums as well). But I think it's something wrong with c# data type I'm using.
thanks
saj
Have stored sample data in English, French and Chinese in xml Reading it through a c#.net function.
loading as follows:
public string getContent( string langcode)
{
XmlDocument doc = new XmlDocument();
XmlNode EntryNode;
doc.Load(@"C:\dataDict.xml");
EntryNode = doc.SelectSingleNode("/multilingual/language");
string test = EntryNode.InnerText;
return (test);
}
XML file as follows:
<multilinugal>
<language> ?? </language>
</multilingual>
Accessing the function in crystal report 10.
if the text in xml is English or French like:
<multilinugal>
<language> helo</language>
</multilingual>
then data is displayed in the crystal report.
If it is Chinese or Japanese data, it is displayed as ????? in crystal report. Tried to change the conditional font for that field in CR10 using "NSimSun". But still it displays ????.
Thr problem may be, I am storing and retuning the chinese font in a string data type. I read char supports unicode. I tried to change code as follows:
char[] cc;
val="??";
cc=val.ToCharArray();
return(cc)
and made function to return char[].
the result does not show up. Stuck up.
Any clues, appreciated! returning unicode fonts from a function.
(this one posted in xml and crystal report forums as well). But I think it's something wrong with c# data type I'm using.
thanks
saj