Word Document in RTL and LTR

Technical support for Spire.Doc

Moderator: iceblue support

Word Document in RTL and LTR

Postby moetarhini » Wed Nov 16, 2011 9:42 am

Dear Support,

We have a word document that has mixed lines Left to Right and Right to Left. When converting to HTML using Spire.Doc the result is always showing Left to Right.

Any help or suggestion please.

Regards,
Moe Tarhini
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby Tina.Lin » Thu Nov 17, 2011 6:59 am

Hello moetarhini,

Sorry for any inconveniences caused by us and thank you for your inquiry.

I simulated what you described, but i don't come up with the problem. I attached the file which generated by Spire.Doc.

If you still have any doubts, would you please send the doc file to help us reproduce your problems?

Thanks in advance.
Have a nice day.
You do not have the required permissions to view the files attached to this post.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Re: Word Document in RTL and LTR

Postby moetarhini » Thu Nov 17, 2011 8:51 am

Thank you Sir for you help. I noticed in your example that you are not using thr Right to Left feature of word, you just aligned it right. In our case we are using RTL as attached:
You do not have the required permissions to view the files attached to this post.
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby moetarhini » Fri Nov 18, 2011 2:34 pm

moetarhini wrote:Thank you Sir for you help. I noticed in your example that you are not using thr Right to Left feature of word, you just aligned it right. In our case we are using RTL as attached:



Any answer regarding this issue?
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby Tina.Lin » Mon Nov 21, 2011 1:11 am

Hello moetarhini,

Would you sent us your doc file to help us to reproduce the problem??

Thanks in advance.
Have a nice day.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Re: Word Document in RTL and LTR

Postby moetarhini » Mon Nov 21, 2011 7:44 am

Please find attached the Sample Document we are working on.

Waiting your feedback ASAP, becasue we are in the evaluation period and we need to take our deciosions based on what your compoenet can do and what can't do.

Best Regards,
You do not have the required permissions to view the files attached to this post.
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby Tina.Lin » Tue Nov 22, 2011 6:24 am

Hello moetarhini,

Sorry for the inconvenience caused by us and thank you for your patience.

We have tested the file you sent. The problem indeed exist. A technical support member is dealing with the problem. Please give us some time to fix the problem. Wait with patience.

Once finished, we will inform you as soon as possible.
Have a nice day.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Re: Word Document in RTL and LTR

Postby moetarhini » Tue Nov 22, 2011 2:55 pm

Thank you Sir.

Do you have a time frame for this Fix. We are going live in Dec 20.

Also please can you notify us on m.tarhini@syncworx.com once this is fixed.

Best Regards,
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby iceblue support » Wed Nov 23, 2011 9:42 am

So sory for the inconvenience caused by us and thanks for your evaluation.

I'm so sorry to tell you that after our research we found Spire.Doc only supports RTL in Doc(code can be found below). About the feature of RTL in HTML, we will add in future upgrade. Once we have any progress we will notify you ASAP!

Sorry again!

Code: Select all
Document document = new Document();
            document.LoadFromFile(@"..\..\Model.docx",FileFormat.Docx);
            Paragraph paragraph = document.Sections[0].AddParagraph();

            //set the orientation of the text
            paragraph.Format.IsBidi= true;
            TextRange tr = paragraph.AppendText("Spire.Doc");
            tr.CharacterFormat.Bidi = true;
            tr.CharacterFormat.FontSizeBidi = 12;
            document.SaveToFile(@"..\..\Test.docx", FileFormat.Docx);
            System.Diagnostics.Process.Start(@"..\..\Test.docx");


Please feel free to contact us for anything at any time. Have a great day!
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am

Re: Word Document in RTL and LTR

Postby moetarhini » Wed Nov 23, 2011 9:47 am

Thank you for the Update. We need to know the Timeframe as we are taking a decision to go with you or other vendors , our target is Dec 20.

Waiting your Feedback.

Regards,
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby moetarhini » Mon Nov 28, 2011 9:52 am

We are still waiting your reply. Can this Feature be ready in Dec ?

Regards,
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby Tina.Lin » Tue Nov 29, 2011 2:09 am

Hello moetarhini,

Sorry for late reply and thank you for your patience.

We have arranged the feature into our schedule. We will do our best to finish it before Dec20.
Once finished, we will inform you as soon as possible.

Have a nice day.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Re: Word Document in RTL and LTR

Postby moetarhini » Tue Nov 29, 2011 7:12 am

Thank you for the Update. We will be waiting your update as we are going live in Dec 20 and this feature is a must in our work.

Regards,
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Re: Word Document in RTL and LTR

Postby Tina.Lin » Wed Nov 30, 2011 1:39 am

Hello,

Thank you for your patience with our team.

We will do our best to finished it.

If you still have any doubts with our products, please don't hesitate to contact us.

Have a nice day.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Re: Word Document in RTL and LTR

Postby moetarhini » Fri Dec 02, 2011 1:54 pm

Hello Sir,

We have another Question during this Evaluation. After Converting a Doc to HTML we are getting the Following Sample:

<span style='font-family: "Times New Roman";'>حسين الحسيني </span><span style='font-family: "Times New Roman";'>
-</span><span style='font-family: "Times New Roman";'> سليم الحص </span><span style='font-family: "Times New Roman";'>
-</span><span style='font-family: "Times New Roman";'> عمر كرامي </span>
<span style='font-family: "Times New Roman";'>-</span><span style='font-family: "Times New Roman";'>
نايلة معوض </span><span style='font-family: "Times New Roman";'>-</span><span style='font-family: "Times New Roman";'>
محمد يوسف بيضون </span><span style='font-family: "Times New Roman";'>-</span><span
style='font-family: "Times New Roman";'> نسيب لحود </span><span style='font-family: "Times New Roman";'>
-</span><span style='font-family: "Times New Roman";'> بطرس حرب</span>

How can we remove the <span style='font-family: "Times New Roman";'> ?

Is there a way ?
moetarhini
 
Posts: 15
Joined: Tue Sep 27, 2011 6:49 pm

Next

Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests