4 Replies - 892 Views - Last Post: 16 February 2013 - 02:44 PM Rate Topic: -----

#1 subirshan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 16-February 13

RTL Language Word export incorrectly - reportviewer visual studio 2010

Posted 16 February 2013 - 12:15 PM

I have a report in winform application - visual studio 2010 .

I am using the build-in Reportviewer control.

My report display fine and export to Excel And PDF are successfull. But export-to-WORD is giving me a hard time.

In the exported WORD documment , in each place that there are 2 or more words - The order of the words is reversed. For example : my report has : Tel Aviv . The exported documment has : Aviv Tel . * It is important to mention that if the words are in English - it exports great. The problem is in the Hebrew Words (that is RTL language) .

i have tried setting the calender and locallization but that didn't help.

please see the attached picture. The left side is the report in my app and the right side is the exported documment.

Click To See The Picture

How can i overcome this problem ?

Is This A Good Question/Topic? 0
  • +

Replies To: RTL Language Word export incorrectly - reportviewer visual studio 2010

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5432
  • View blog
  • Posts: 11,644
  • Joined: 02-June 10

Re: RTL Language Word export incorrectly - reportviewer visual studio 2010

Posted 16 February 2013 - 01:01 PM

If its a Right To Left language, and the words display: Aviv Tel, then isn't it correct? Reading it from Right to left it becomes Tel Aviv.

I don't do RTL languages so I don't know all the rules. But it *seems* like that would be correct.

This post has been edited by tlhIn`toq: 16 February 2013 - 01:02 PM

Was This Post Helpful? 0
  • +
  • -

#3 subirshan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 16-February 13

Re: RTL Language Word export incorrectly - reportviewer visual studio 2010

Posted 16 February 2013 - 02:14 PM

thanks for your answer.

it isn't correct.
i want the exported documment to be as the report in my application.
my report shows for example : Tel aviv (that is correct) but the exported file shows the opposite.

is there any way to overcome this problem ?
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5432
  • View blog
  • Posts: 11,644
  • Joined: 02-June 10

Re: RTL Language Word export incorrectly - reportviewer visual studio 2010

Posted 16 February 2013 - 02:29 PM

I don't think that's happening in your code. That's Microsoft Word being 'smart' and 'helpful'. You need to find the formatting options of the document and override the language to have it remain Left To Right. Once you have found the settings in the document itself, that you lead you to what you have to set via code when you programmatically make a new document.
Was This Post Helpful? 0
  • +
  • -

#5 subirshan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 16-February 13

Re: RTL Language Word export incorrectly - reportviewer visual studio 2010

Posted 16 February 2013 - 02:44 PM

Problem solved by setting the textbox's "direction" property to RTL .

It is not enough to set this property in the report's list of properties.

You must do the same for each textbox you want .
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1