Last post Dec 19, 2013 11:21 AM by NDB56
Dec 08, 2013 09:15 AM|NDB56|LINK
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.
Dec 17, 2013 03:39 AM|SamJsr|LINK
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.
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.
Dec 17, 2013 03:57 AM|NDB56|LINK
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?
Dec 19, 2013 04:37 AM|SamJsr|LINK
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.
Dec 19, 2013 11:21 AM|NDB56|LINK
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.