Can u add Right To Left Support for all Text Related controls. these controls should also render with the correct setting on Web, PDF etc. for example on the Web it should render with dir=rtl
XRControl - Add the RightToLeft property to all text aware controls
Answers approved by DevExpress Support
We have implemented the functionality described in this ticket. It will be included in our next update(s).
Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.
Right-to-left writing systems have been supported in reports and reporting applications created with XtraReports.
1. Right-To-Left Support in XtraReports
The XtraReport class and most of the report controls have been provided with the RightToLeft property. This property specifies content layout within a control (for most controls, this property affects the direction of their text, and for XRCheckBox, this property also affects the check box position within the control).
Left-To-Right:
Right-To-Left:
By default, all report controls have this property set to Inherit, so enabling it for a report will apply this setting to all its controls.
The following controls support this feature.
- XRCheckBox
- XRLabel
- XRPageInfo
- XRPanel
- XRPivotGrid
- XRTable
- XRTableOfContents
For XRPanel and XRTable, this option only affects the controls contained in them.
An XRChart can also be switched to the right-to-left mode by setting the Axis.Reverse property of its X-axis.
The XRRichText control does not yet support the right-to-left feature.
When the XtraReport.RightToLeft property of a report is set to RightToLeft.Yes, you can also enable the XtraReport.RightToLeftLayout property that specifies the position of controls within report bands. Enabling the right-to-left layout will also swap the page margins of a document (it will become impossible to place controls outside the right page margin).
The controls' coordinates will remain unchanged and only the point and direction of reference will change (the X coordinate will be calculated starting with the top right corner). In a report designer (for WinForms and ASP.NET), this will be reflected in the horizontal ruler direction.
The right-to-left layout is preserved when exporting a report to any of the supported formats (e.g., PDF, Excel, or RTF).
2. Right-To-Left GUI in Reporting Applications
In WinForms and ASP.NET, the Print Preview and End-User Report Designer can be switched to the right-to-left mode.
A right-to-left layout is automatically applied to the UI if the application's culture is set to any of the following cultures: "ar", "fa", or "he". To do this, the following properties must be specified in an application.
- System.Threading.Thread.CurrentThread.CurrentCulture
- System.Threading.Thread.CurrentThread.CurrentUICulture
The right-to-left feature can also be enabled in ASP.NET reporting applications by using any of the approaches described in the following document: Right to Left Support.
In WinForms reporting applications, the right-to-left layout can be enabled by setting the following two properties to DefaultBoolean.True.
- WindowsFormsSettings.RightToLeft
- WindowsFormsSettings.RightToLeftLayout
Does the rtl Report implementation include mixed RTL & LTR text?
If not can you give instructions on how to implement?
Thank you.
Dov
Hi Dov,
I've created a separate ticket on your behalf for this question (T615107: How to include mixed RTL & LTR text to Report). This ticket has been placed in our processing queue and will be answered shortly.
Hello Dan,
Thank you for the detailed description which you've provided here. It helped us understand what we should do to enable the RightToLeft feature in XtraReports. We'll consider implementing it in XtraReports v2007.1. But if we plan this feature for v2007.1 (its state will become Planned), please note that v2007.1 will be released in the beginning of the next year, so we understand that you may choose a product from any of our competitors, who already deliver the RightToLeft feature.
Thanks, Alan.
R&D, .net Team.
PS. Note that the more people track this issue, the higher priority it has in our plans.
Hi Mohsen,
All I can tell you is that we are working in this direction and already have certain results. If everything goes according to plan, this functionality will be available in v16.1 or v16.2, but again, I cannot promise anything at present.
Hello Ingvar,
Any good news? How goes …
We are waiting for the renewal subscription because we do not know which way we will go.
Please, we want to know.
Thanks
Hi Mohsen,
As Ingvar has already mentioned, our team is working in this direction and tries to do their best to provide our customers with this functionality as soon as possible. In any case, for now we cannot make any announcements regarding this functionality until it is completely implemented and tested on our side. Please keep tracking the news and blogs available on our website, and also watch for updates in the What's New section: I'm sure that you won't miss the news regarding this feature.
Thank you for understanding.
any ideas when this feature will be added? i need to know to select the reporting solution for one of our big projects
Can anyone respond to my question about the timeframe?
Hello Dan,
Sorry, we can't provide you with any time frame on this feature suggestion. Since its state is still "Accepted - Release TBD" and it is not in our nearest plans.
However, we need to investigate this problem further. Yes, the XRLabel control in XtraReports doesn't have the RightToLeft property, but it renders its text as you want. In general, if you set any right-to-left language in your system settings, you may enter this text in the in-place editor of an XRLabel in the right-to-left manner. And it will be rendered to preview and exported to different formats in the same manner as it was designed. If it doesn't, then it seems to be a bug.
Could you please provide us with a detailed description of this feature, showing us what we shall do and what you want to get, and we'll consider if we can implement it soon. In any way, thank you for your time.
Thanks, Alan.
R&D, .net Team.
What i need can be described pretty easy:
add a RightToLeft property to all text related controls of the report. setting it to true should render with RTL settings where applicable (e.g. if rendering to HTML then render with dir=rtl, if rendering to excel or word then mark the text as RTL, the only real issue is when rendering to PDF where the text is rendered backwards on all reporting engines i have tried so far (except crystal reports)).
from evaluating other reporting alternatives i found the following:
Report Sharp Shooter supports RTL but it's web viewer can not be customized nor is it planned in the near future
Crystal Reports has all i need but it's licensing is very expensive per web server i need to deploy
Active Reports also supports RTL but it's web viewer van not be customized
Telerik Reporting will support RTL from V1 but currently it's in CTP only and still there is no release date.
Your product will support customizations of the web viewer in the next version but does not support RTL.
as you can see i have done a very extensive research and your product seems to be superior to other competitors in alot of areas but in terms of RTL it is far behind the competition.
let me know what you think. can this be implemented? can i help in any way?