Viewer - Migrating C1Report to FlexReport

Posted by: thomas.hayashi on 23 January 2020, 7:18 am EST

    • Post Options:
    • Link

    Posted 23 January 2020, 7:18 am EST

    Hello,

    Sorry if I created the thread on the wrong place. This is related to FlexReport, however the component is Wijmo control.

    I have a webform page that is using the following component:

    C1.Web.Wijmo.Controls.C1ReportViewer.C1ReportViewer

    Version 4.0.20151.209

    Now that I’m migrating from C1Report to Flexreport, I no longer have the C1PrintDocument(code below) to pass to the C1ReportViewer.

    
    C1ReportViewer reportViewer;
    reportViewer.FileName = tempFileName;
    reportViewer.ReportName = randomReportName;
    
    C1.C1Report.C1Report report = new C1.C1Report.C1Report()
    ...
    C1.C1Preview.C1PrintDocument printDoc = report.C1Document
    printDoc .Save(tempFileName);
    reportViewer.DataBind();
    
    

    I’m aware that C1FlexReport does not have C1PrintDocument, after I asked about it.

    https://www.grapecity.com/forums/winforms-edition/memory-usage---flexreport

    So, what are my options to view a FlexReport(or any converted form) on my webform page ?

    P.s. I’ve download the “wijmo-5.20193.646”, but could not find any DLL inside. How do you use components on webforms ?

    Thanks.

  • Posted 23 January 2020, 10:40 pm EST

    Hi Thomas,

    The C1ReportViewer can only display C1Reports. If you wish to migrate to FlexReport, you have two choices:

    1. You will need to purchase ComponentOneUltimate which comes with Webforms, Winforms, Wijmo, WebApi and many other components. You will need to use the ReportViewer of Wijmo in your Webforms application in order to view the FlexReport.

      Also, Wijmo’s ReportViewer control needs the C1WebApi Report Services to view the reports, so you will need to host the FlexReport using the C1WebApi application and use Wijmo to display the report.
    2. The second option is to migrate your application to MVC or MVCCore. The MVC edition has its own FlexViewer control that can directly display the FlexReports without hosting the C1WebApi separately since it uses WebApi internally. It also provides the option to view the report from API the same as Wijmo ReportViewer.

    If the above options are not feasible for you, then I would suggest not to migrate to FlexReport because Webforms can easily display C1Report.

    Let us know if you have any doubts regarding this.

    Regarding Wijmo, Wijmo is a Javascript client-side controls suite. It does not contain any DLL files instead it contains JS files which can be used to host controls on the client-side.

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels