FlexReport Export To PDF

Posted by: mwebster on 19 September 2018, 2:58 pm EST

    • Post Options:
    • Link

    Posted 19 September 2018, 2:58 pm EST

    ANother small issue in converting to FlexReport. I need to silently and without user interaction export a report to PDF and store it n a specific location. I accomplish it very easily with C1Report using this code:

            c1Rpt.RenderToFile(CurOrder.DocPath & "\Crating Report-" & m_CrateID & " - " & Trim(OrderNo) & ".pdf", C1.C1Report.FileFormatEnum.PDF)
    

    There is no RenderToFile method on the C1FlexReport object and I can’t seem to figure out how to get it done. This is actually a crucial requirement for this app and not being able to do it would force me to abandon FlexReport and stick with C1eRport which I do not want to do.

    Thanks,

    Mike

  • Posted 20 September 2018, 12:40 am EST

    Hello Mike,

    You can use the PdfFilter object, as explained on this documentation link:

    http://help.grapecity.com/componentone/NetHelp/FlexReport/webframe.html#ExportingReportstoVariousFormats.html

    With this, you can specify the file name and path, and export the report to pdf without user interaction.

    Let me know if you need further assistance.

    Best Regards,

    Esha

  • Posted 21 September 2018, 9:00 am EST

    That did it! Thanks!

    Mike

Need extra support?

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

Learn More

Forum Channels