This is a migrated thread and some comments may be shown as answers.

PDF Lanscpae Orientaion - alignment problem

3 Answers 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nisha
Top achievements
Rank 1
Nisha asked on 29 Jun 2012, 08:51 AM
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

3 Answers, 1 is accepted

Sort by
0
Nisha
Top achievements
Rank 1
answered on 10 Jul 2012, 07:20 PM
Hi,

    As i need to complete my issues in urgent basis. Please help me to resolve this issue asap.


Thanks,
Nisha 
0
Nisha
Top achievements
Rank 1
answered on 12 Jul 2012, 11:12 AM
Hi,

    Please help me to resolve this issue asap. 

Thanks,
Nisha
0
Michel
Top achievements
Rank 1
answered on 27 Aug 2012, 01:00 PM
change the page settings orientation to landscape and put the margin to 0.1in not 1in
Tags
General Discussions
Asked by
Nisha
Top achievements
Rank 1
Answers by
Nisha
Top achievements
Rank 1
Michel
Top achievements
Rank 1
Share this question
or