Hi,
I am working on Telerik Reporting, i have created the report using CrossTab wizard control. I am showing that report in report viewer.This report contains more number of columns, while exporting the report to PDF it displays in portrait orientation. But i need to display all the columns in a single page. so i changed the report to landscape orientation by using below code.
Telerik.Reporting.Report oReport = new testReport();
oReport.PageSettings.Landscape = true;
oReport.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A3;
Telerik.Reporting.Drawing.Unit w = default(Telerik.Reporting.Drawing.Unit);
if (oReport.PageSettings.Landscape)
{
w = oReport.PageSettings.PaperSize.Height - oReport.PageSettings.Margins.Top - oReport.PageSettings.Margins.Bottom;
}
else
{
w = oReport.PageSettings.PaperSize.Width - oReport.PageSettings.Margins.Left - oReport.PageSettings.Margins.Right;
}
oReport.Width = w;
ReportViewer1.Report = oReport;
This code works fine. But the report has more number of columns means it displays the report correctly. If the report contains less columns means the design is not proper.Totally the table aligned to left side, so it displays the blank space in right side. I have attached the screenshot for my issue. I need to center align the report. Is there any option to that? If so, please send the sample solution.
Thanks
Nisha
I am working on Telerik Reporting, i have created the report using CrossTab wizard control. I am showing that report in report viewer.This report contains more number of columns, while exporting the report to PDF it displays in portrait orientation. But i need to display all the columns in a single page. so i changed the report to landscape orientation by using below code.
Telerik.Reporting.Report oReport = new testReport();
oReport.PageSettings.Landscape = true;
oReport.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A3;
Telerik.Reporting.Drawing.Unit w = default(Telerik.Reporting.Drawing.Unit);
if (oReport.PageSettings.Landscape)
{
w = oReport.PageSettings.PaperSize.Height - oReport.PageSettings.Margins.Top - oReport.PageSettings.Margins.Bottom;
}
else
{
w = oReport.PageSettings.PaperSize.Width - oReport.PageSettings.Margins.Left - oReport.PageSettings.Margins.Right;
}
oReport.Width = w;
ReportViewer1.Report = oReport;
This code works fine. But the report has more number of columns means it displays the report correctly. If the report contains less columns means the design is not proper.Totally the table aligned to left side, so it displays the blank space in right side. I have attached the screenshot for my issue. I need to center align the report. Is there any option to that? If so, please send the sample solution.
Thanks
Nisha