We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Support For InsertHTML for Arabic langauge(RTL)

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

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. The problem occurs because Aspose.Words does not support RTL upon HTML import export. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Supporting RTL in HTML is quite complex issue, so I cannot provide you any estimate regarding this issue at the moment.

The only way to insert RTL text into Word document is using Bidi property and Wrote/Writeln methods, like described here:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.font.bidi.html

Best regards.

The issues you have found earlier (filed as 390) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(3)