ActiveReports 18 V sectionReport

Posted by: guruprasath.ws on 17 September 2024, 8:29 am EST

    • Post Options:
    • Link

    Posted 17 September 2024, 8:29 am EST - Updated 17 September 2024, 10:08 am EST

    Hi,

    We have 30+ section reports in Active reports 8, all these section reports are code based one which is written in C#.Net. We are currently trying to migrate them to Active Reports V18. I have create a new application and imported the existing report. I see a message saying “Rendering…” and I don’t see the report. I think there is some issue with the ActiveReportsWeb:WebViewer.

    Can you please help me to fix it.

    The reports are integrated in our MVC application written in .NetFramework 4.8.

  • Posted 18 September 2024, 2:22 am EST

    Hi Guruprasath,

    Please note that the conversion from v8 to v18 is a major version upgrade, and we cannot guarantee a smooth upgrade process as there have been many updates and breaking changes introduced since then.

    Also, since there are many differences between the product requirements for ActiveReports 10 and ActiveReports 18, please refer to the product requirements for ActiveReports 18 here: Product Requirements

    Hence, it is suggested to refer to the breaking changes for each version using the following links before upgrading:

    Also, we tried rendering a code-based Section Report in the WebViewer, and it worked as expected. Please refer to the attached sample demonstrating the same. Make sure to add the api/reporting/* HTTP handler to your ‘web.config’ file and corresponding UseReporting call to ‘Global.asax’ for the WebViewer to work properly.

    You may also refer to the attached documentation for using WebViewer:

    If the issue still persists, please provide us with your stripped-down, runnable sample application replicating the issue so that we may assist you further.

    WebViewer_v18.zip

  • Posted 23 September 2024, 1:55 am EST - Updated 23 September 2024, 2:09 am EST

    Thank you for your response and apologies for late reply.

    We have decided to migrate or convert the existing section reports to RPX, and reuse the existing report designs. For that, I am trying to load the RPX report into a SectionReport object and trying to bind data from a datasource. Here is the snippet. But I don’t see the lastest data in the report. Can you please assist with a sample. We are planning to use .NET MVC Core. Thank you!!

  • Posted 23 September 2024, 6:42 am EST

    Hi Guruprasath,

    It seems like you are using JSViewer. Please refer to the attached sample where we have demonstrated rendering both .rpx and code-based Section Report on the JSViewer.

    For .rpx reports, you need to use the UseFileStore method in the Startup.cs to fetch the report. In the Script section of the report, you may pass the datasource using its ReportStart event. In the script.js, make sure to pass the correct .rpx file name in the openReport method of the Viewer.

    For code-based Section Reports, you need to use the UseCodeBasedSectionReports method in the Startup.cs to fetch the report. In its .cs file, you may pass the data using its ReportStart event. In the script.js, make sure to pass the correct file name in the openReport method of the Viewer, without any extension.

    Please refer to the attached documentation links for reference as well:

    P.S., when you are using your code-based Section Report in a .NET Core application, then you will face an issue as a part of the existing limitation in .NET Core 3.1 and above that does not allow the ActiveReports Integrated Designer to be used for designing code-based Section Reports in WinForms applications in Visual Studio. As a workaround, you need to use the Visual Studio’s option to link report files from the .NET Core project into the .NET Framework project and use the .NET Framework WinForms Designer. The steps mentioned in the attached documentation is the suggested workaround for designing code-based Section Reports in .NET Core: Design Code-based Section Reports in .NET Core

    If the issue persists at your end, please provide us with a stripped-down and runnable sample replicating the issue so that we can investigate the same at our end and get back to you accordingly.

    JSViewer_MVC_Core.zip

  • Posted 10 October 2024, 8:04 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