Thanks for your quick reply & suggestion.
We are using Aspose word version 22.214.171.124
we are having one question regarding the text direction property available at pargaraph level in microsoft word.
When text is set to “right-to-left” for “Arabic” language this property must be set onto word document.
please refer the attached image"error.png" indicating the exact location of text direction at paragraph level.
Also refer the attched sample document "Sample.doc" for further reference.
The sample code used to generate this document is as follows.
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.ParagraphFormat.Alignment = ParagraphAlignment.Right; documentBuilder.Font.Bidi = true; documentBuilder.InsertHtml("إلهامي"); doc.Save("sample.doc"); StartWord("sample.doc");
Will you please provide some more inputs on this issue?
Waiting for your reply…!!!
Thanks & Regards,