Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Page Orientation is not working
posted

I am trying to generate pdf document with page oriention set to landscape but it not having any effect

Dim Document As New Report()

Dim PDFSection As Infragistics.Documents.Report.Section.ISection = Document.AddSection()

PDFSection.PageOrientation = Infragistics.Documents.Report.PageOrientation.Landscape

' other code goes here

Document.Publish(FilePath,FileFormat.PDF).

 Is ther any code sample that you can point me to?

Regards

Devinder Singh

Parents
No Data
Reply
  • 1414
    posted

    Singh,

    I am just learning the use and power of the DocumentExporter, but I think the problem you are having is because you are attempting to make a specific report section orient to Landscape.  Is it you intent to print part of the report in Portrait and switch part of it to Landscape.

    If not, then the stuff provided in their examples could help.  For example:

    // configure exporter
    RightContent_DocumentExporter.Format = FileFormat.PDF;
    RightContent_DocumentExporter.DownloadName =
    "roster.pdf";
    RightContent_DocumentExporter.TargetPaperOrientation =
    PageOrientation.Landscape;

    // Create a new report after setting DocumentExporter defaults
    Report report = new Report();
    report.Info.Title = this.txtGridHdr.Text;
    report.Info.Author = p.Identity.Name.ToString();
    report.Info.Subject =
    "Confidential Report printed by " + p.Identity.Name.ToString();

    That would orient the entire report.

     

Children