Export to PDF using FlexReport Path Format not supported

Posted by: saidnai on 28 March 2019, 8:10 am EST

    • Post Options:
    • Link

    Posted 28 March 2019, 8:10 am EST

    Dear all,

    I have used the following code in VB as suggested in one Topic to create a PDF file from a Flexreport in silent mode:

    Dim c1FlexReport1 As New C1FlexReport()

    c1FlexReport1.Load(“C:\Test\Shiftreport.flxr”, “Shiftreport”)

    c1FlexReport1.Render()

    Dim filter As New C1.Win.C1Document.Export.PdfFilter()

    filter.ShowOptions = False

    filter.FileName = “Shiftreport” + “C:\Temp\Shiftreport.pdf”

    c1FlexReport1.RenderToFilter(filter)

    Unlikely i get an error saying “The path format is not supported”

    Can you please give a running sample for this issue.

    Best regards

    Said

  • Posted 29 March 2019, 2:24 am EST

    Hello Said,

    The problem lies here:

    “Shiftreport” + “C:\Shiftreport.pdf”

    This generates an invalid path, something like:

    “Shiftreport C:\Temp\Shiftreport.pdf”

    You can instead use the path, as follows:

            filter.FileName = "C:\Temp\Shiftreport.pdf"
    
    

    A sample has been attached for your reference.

    Best Regards,

    Esha

    prj_FlexReport_PdfExport.zip

Need extra support?

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

Learn More

Forum Channels