Hi all,
I am generating a word report through c# and open xml but the problem is that when i append altchunk the below code
string id = "ReportChkName" + details.check_id;
string altChunkId1 = id;
AlternativeFormatImportPart altchunk = part.AddAlternativeFormatImportPart(AlternativeFormatImportPartType.Html, altChunkId1);
using (Stream stream = altchunk.GetStream())
{
byte[] buf = (new System.Text.UTF8Encoding()).GetBytes("<html><body>" + mystring + "</body></html>");
stream.Write(buf, 0, buf.Length);
}
AltChunk altChunk1 = new AltChunk();
altChunk1.Id = altChunkId1;
run362.Append(altChunk1);
the chinese text in 'mystring' should not appear on word report in appropriate format.
So will you please help me, how can i append the string with chinese text