Help with exporting C1TrueDBGrid to PDF as Landscape file

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

  • Posted 13 January 2021, 12:06 pm EST


    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")


  • Marked as Answer

    Replied 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")

    Prabhat Sharma.
  • Replied 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