Hi Alexey,
Thanks for your quick suggestions & reply.
We are using Aaspose.Word version 7.0.0.0
We are facing a problem while creating Word document in Arabic format.
We are using InsertHTML API for inserating a HTML formatted text . But We cannot be able to produce the required output.
Please refer the attached sample document for further reference.
The Sample code used to create a document is as follows.
private void button28_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);
documentBuilder.Font.Bidi = true;
documentBuilder.ParagraphFormat.Bidi = true;
documentBuilder.Font.NameBi = "Arial Unicode MS";
documentBuilder.InsertHtml("إلهامي");
doc.Save("sample.doc");
StartWord("sample.doc");
}
If you can go through the attached document there you can find that the “Bold” & “italic” options in Word document are set properly but the output text is neither in bold form nor into italic form.
Based upon above obseravation i have following question.
1> Does Aspose support rendering of HTML tags for RTL { Arabic language}?
2> If Aspose do not fully supports HTML tags for RTL then can you enlist the HTML tags for which it is currently supporting?
Waiting for your reply…!!!
Thanks & Regards,
Dwarika