Help with exporting C1TrueDBGrid to PDF as Landscape file

Posted by: Victor.m.charles.civ on 13 January 2021, 12:06 pm EST

    • Post Options:
    • Link

    Posted 13 January 2021, 12:06 pm EST

    Hi,

    How do I modify the code below to export the file in landscape format?

    C1AOP5.ExportToPDF(Application.StartupPath + “\AOP6.PDF”)

    System.Diagnostics.Process.Start(Application.StartupPath + “\AOP6.PDF”)

    Thanks,

    Victor

  • Posted 13 January 2021, 5:37 pm EST

    Hi Victor,

    You can use the following code to export the TDB to pdf in the landscape format:

    C1TrueDBGrid1.PrintInfo.PageSettings.Landscape = True
    C1TrueDBGrid1.ExportToPDF(Application.StartupPath + "\AOP6.PDF")
    System.Diagnostics.Process.Start(Application.StartupPath + "\AOP6.PDF")
    

    Regards,

    Prabhat Sharma.

  • Posted 18 January 2021, 1:49 pm EST

    Thank You.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels