• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 680
  • Last Modified:

active reports

Hi experts,

Has any one used active reports with c# before?

If so,

How do I set the page programmatically to print as landscape

thanks


i have used this code and It does work


private void cerEntityReports_ReportStart(object sender, System.EventArgs eArgs)
          {
               this.Document.Printer.Landscape= true;
          }
0
SirReadAlot
Asked:
SirReadAlot
  • 4
  • 2
1 Solution
 
mjmarlowCommented:
In your ReportStart event handler:

PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape;
0
 
SirReadAlotAuthor Commented:
i will try this. tomorrow

thanks
0
 
SirReadAlotAuthor Commented:
Morning,

I have tried this
private void cerEntityReports_ReportStart(object sender, System.EventArgs eArgs)
            {
                  //this.Document.Printer.Landscape = true;
                  PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape;

            }
but it still prints as if portrait was set

what else can i try. it hasn't got a beforeprint event

thanks
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
SirReadAlotAuthor Commented:
i have even tried this and no luck

private void cerEntityReports_ReportStart(object sender, System.EventArgs eArgs)
            {
                  //this.Document.Printer.Landscape = true;
                  PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Landscape;

                  //this.PageSettings.Orientation = PageOrientation.Landscape;

                  this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;

                  this.Document.Printer.Landscape = true;

                  this.PageSettings.PaperWidth = 11f;

                  this.PageSettings.PaperHeight = 8.5f;

                  this.PrintWidth = 11f;
                  
                  
                  this.PageSettings.Margins.Bottom = 0;

                  this.PageSettings.Margins.Top = 0;

                  this.PageSettings.Margins.Left = 0;

                  this.PageSettings.Margins.Right = 0;


            }
0
 
mjmarlowCommented:
Make sure the designer surface is stretched out to 11 inches (given your 0 margin setting).  If you had .5 in margins on left and right, adjust the report width to 10 inches.
0
 
SirReadAlotAuthor Commented:
will try this
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now