Upgrade c1Report to c1FlexReport in ASP.Net Webforms Project

Posted by: sales on 23 September 2020, 7:56 am EST

    • Post Options:
    • Link

    Posted 23 September 2020, 7:56 am EST

    I have an ASP.Net Webforms project that utilizes C1Report to render the reports to a PDF\HTML file. Visual Studio indicates the C1Report is a legacy control and to use C1FlexReport.

    I see numerous references that c1FlexReport can be implemented in ASP.NET MVC but nothing clear concerning a ASP.NET webforms project.

    So my question is C1FlexReport able to be implemented in a ASP.NET webforms project?

  • Posted 23 September 2020, 6:02 pm EST


    You may migrate to the FlexReport from C1Report using the following Blog post:


    To use the FlexReport in Asp.NetWebForm project, we need to create a C1WebApi for FlexReport and this API can be used with Wijmo ReportViewer.

    Please refer to the following documentation to create the WebApi for FlexReport:


    Wijmo ReportViewer: https://www.grapecity.com/wijmo/demos/Viewer/ReportViewer/ViewingFlexReportReports/purejs

    Wijmo ReportViewer can be used in the ASP.Net WebForm project since these are purejs control.


    Manish Gupta

  • Posted 24 September 2020, 2:10 am EST

    Thank you for the information\options.

    Is using the C1WebApi required for an Asp.Net WebForm project, if not planning on utilizing the ReportViewer?

    I ask because I’m just looking to render the report into a PDF file.

    Conceptually I have migrated the code and report definition from C1Report to C1FlexReport, but run into an error when attempt to load the report definition: ‘C1.Win.FlexReport.Serialization.C1ReportSerializer threw an exception’.

    I am able to preview the C1FlexReport in the designer and in a WinForms environment so I don’t believe anything is incorrect\corrupted with the .flxr definition.


  • Posted 24 September 2020, 7:34 pm EST


    No, if you are not using the viewer for FlexReport in the application.

    As we understand, the WebForm application, you are generating the PDF using the C1FlexReport by exporting it to PDF format. So you need not viewer in the application.

    And you were doing the same with the C1Report. Please confirm.

    Could you please share the exception you are getting in your web application?


    Manish Gupta

  • Posted 24 September 2020, 10:52 pm EST - Updated 30 September 2022, 12:39 am EST

    I believe I have the issue resolved and all in working order.

    To summarize for anyone else stumbling across a similar issues:

    The original version of the WebForm application was utilizing C1Report and utilizing the C1Report method RenderToFile to export to a PDF.

    My original issue in attempting to migrate from C1Report to C1FlexReport was occurring when attempt to load the report definition: with the error ‘C1.Win.FlexReport.Serialization.C1ReportSerializer threw an exception’..

    Further investigating\details of the error indicated I needed to include C1.Win.C1FlexChart.4.dll and C1.Win.C1DX.4.dll in the bin folder. Once included the report definition loaded without errors.

    The updated version of the WebForm application now utilizes C1FlexReport and Renders \ Exports via the C1Document to a PDF.

    Thanks Manish for the assistance and pointing me to the correct solution.

Need extra support?

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

Learn More

Forum Channels