locked
No RTL Support for RDLC Export to PDF on VS 2012 RRS feed

  • Question

  • User749449139 posted

    Using VS 2012 I generate a RDLC for RTL language. On the ReportViewer it's displays in correct

    right-to-left layout but when exporting to PDF the layout changes to left-to-right.

     

    In version 2005 of VS the solution to keep RTL layout when exporting was to place all the report objects in a List object and set the list Direction property to RTL.

    Unfortunately in VS 2012 the List object has been changed and the Direction property

    is missing. There is a new LayoutDirection property but setting its value to RTL does not affect export output problem.

    Sunday, December 8, 2013 9:15 AM

Answers

  • User749449139 posted

    Thanks alot SamJsr,

    I've made a new RDLC and tested and no problem with exporting.

    So it's might be sum problem with the old one.

    Anyway, I found that although we use reports that displays the data columns from right-to-left,

    it's enough to place the first data field at the first column from the right (or the last from the left) and proceed to left.

    Greetings.

    Laughing

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 19, 2013 11:21 AM

All replies

  • User513209653 posted

            Hi,

              After reading your post. I did some research. I created a RDLC. I used a List and tried to change the layout

              to RTL. I found that you are right there is no Layout property in VS 2012 but there is a LayoutDirection property in

              the List that has the values RTL and LTR.

    •           When you are using a TextBox the property is “Direction” and has the values RTL and LTR.
    •           When you are using a List or Table it's “LayoutDirection” and has the values RTL and LTR.

                         

              I guess it will serve your purpose. It is working well in my application.

              Feel free to give any more inputs if I am missing any point.

              

            Regards.

    Tuesday, December 17, 2013 3:39 AM
  • User749449139 posted

    Thanks for the reply SamJsr,

    When exporting to PDF Etc. does the report RTL layout of tables keeps as the ReportViewer layout or the columns rendered LTR?

    Best Regards

    Tuesday, December 17, 2013 3:57 AM
  • User513209653 posted

    Answer:

                   Hi,

                       Yes, it is working absolutely fine and the Layout stays RTL . There is no problem.

                       Here are some screenshots:

                       

                      

                     

     

                       1st Sceenshot is the Report with RTL.

                       2nd Screenshot is the Report displayed after debugging.

                       3rd Screenshot is the saved PDF file.

                       I also took a printout to check.

                       I have checked it. In all other formats too. It is working well.

                       Everything goes well.

    Best regards.

    Thursday, December 19, 2013 4:37 AM
  • User749449139 posted

    Thanks alot SamJsr,

    I've made a new RDLC and tested and no problem with exporting.

    So it's might be sum problem with the old one.

    Anyway, I found that although we use reports that displays the data columns from right-to-left,

    it's enough to place the first data field at the first column from the right (or the last from the left) and proceed to left.

    Greetings.

    Laughing

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 19, 2013 11:21 AM