How to change the report direction?

Hi

I made a report using XMLTextWriter (Report.RDL) in vb.net .

How can i change the report direction to RTL.  

Thanks.

August 23rd, 2015 1:11am

Hi sepehrasf,

Try something like as below:

window.onload=function()
{

  var viewer = document.getElementById("ReportViewer1");
  var frame = document.getElementById("ReportFrame");
  if (frame != null && viewer != null)
  {
    var reportDiv = eval("ReportFrame").document.getElementById("report").contentDocument.getElementById("oReportDiv");
    viewer.style.height = reportDiv.scrollHeight;
    viewer.style.width = reportDiv.scrollWidth;

   //var btn = eval("ReportFrame").document.getElementsByName("ReportViewer1$ctl00$ctl00")[0];
  }

} 

Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2015 2:33am

I'm using XMLTextWriter and SQL Reporting Services to show the report.is there any solution?
August 23rd, 2015 5:28am

Hi, 

According to your description, you want to change the report LayoutDirection to RTL, right? 

In Reporting Services, if we want to change the report layout direction, we can change the LayoutDirection value to RTL (LTR is default). In your scenario, you need to open the report in Report Builder or SSDT. Select the required tablix, and then press F4 to find LayoutDirection property to change the value to RTL. 

If you have any other question, please feel free to ask. 

Regards,
Shrek Li

Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 3:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics