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
285
Export pdf in Landscape is not working?
posted

Hi,

I need my grid to be export to pdf in Landscape mode. Even I open pdf for view also it should be in Landscape mode.

But when I specify as TargetPaperOrientation property to Landscape alsow is not working.

Any luck?

Thanks in Advance.

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    I just tried this out with the latest version of 9.1 and it worked correctly for me.  I set the TargetPaperOrientation to Landscape in the designer, then used the following code:

    Report report = new Report();
    ISection section = report.AddSection();
    this.ultraGridDocumentExporter1.Export(this.ultraGrid1, section);

    report.Publish("Test.pdf", FileFormat.PDF);

    I also tried a simpler export:

    this.ultraGridDocumentExporter1.Export(this.ultraGrid1, "Test.pdf", Infragistics.Win.UltraWinGrid.DocumentExport.GridExportFileFormat.PDF);

    This may have been an issue that had already been addressed, so you should ensure that you have the latest service release.

    -Matt

Children
No Data