Using the Right-To-Left Mode in the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.For right-to-left languages such as Arabic or Hebrew, the viewer interface can be mirrored. This example enables RTL mode.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
var report = new Stimulsoft.Report.StiReport();
report.loadFile('Reports/BookmarksAndHyperlinks.mrt');
var viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
viewerOptions.appearance.rightToLeft = true;
return <Viewer options={viewerOptions} report={report} />;Setting appearance.rightToLeft = true lays the toolbar, panels and scrollbars out right-to-left, which — together with an RTL report template and interface localization — gives a fully localized experience for right-to-left audiences.