Hi Alexey,
I am facing a problem while creating the table by using HTML tags.
This is happened only for chinese language.
I am using Aspose version 7.0.0.0
Please,refer attached document indicating output in English & Chinese Language.
If you observe both the document properly. You will find that for english language the table containing text is coming properly.
But for chinese document the entire table is going out of page. If u seen the chinese text properly then you can notice that the text is not wrapped inside the table automatically.
The sample code is as follows
private void button17_Click(object sender, EventArgs e)
{
string path = Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath);
//Initialize Aspose license.
Aspose.Words.License lic = new Aspose.Words.License();
lic.SetLicense(path + @"\Aspose.Total.lic");
Aspose.Pdf.License lic1 = new Aspose.Pdf.License();
lic1.SetLicense(path + @"\Aspose.Total.lic");
Document doc = new Document();
DocumentBuilder documentBuilder = new DocumentBuilder(doc);
//set the page size.
//set the page set-up
PageSetup pageSetup = documentBuilder.CurrentSection.PageSetup;
pageSetup.PaperSize = PaperSize.A4;
documentBuilder.Font.Name = “arial unicode MS”;
string str = File.ReadAllText(@“C:\Documents and Settings\amit.saraf\Desktop\chinese(PRB)\Eng-rule.txt”);
//string str = File.ReadAllText(@“C:\Documents and Settings\amit.saraf\Desktop\chinese(PRB)\CHZ.txt”);
documentBuilder.InsertHtml(str);
doc.Save(“chinese.doc”);
StartWord(“chinese.doc”);
}
The Sample TXT files used in this program is also attached with this post.
The Sample document coming out of sample code is also attached with this thread.
Note: Even we also modified the HTML table tag as
<TABLE width="50%" still the width of the table is not coming into effect for chinese table.1> If you can reproduce this problem then will u please tell us that when we will expect this issue to be fixed & in which future release of ASPOSE?
2> Is this issue is only restricted to chinese language or it is also available with other asian languages like ( Korean, Japanese Etc.)
3> Is there any work around to fix this issue?
We are waiting for your reply…
Thanks & Regards,
Dwarika