How to use ActiveReports in Razor Pages Web app?

Posted by: grace.morris on 2 November 2023, 5:57 am EST

    • Post Options:
    • Link

    Posted 2 November 2023, 5:57 am EST

    hello everyone! I’m really really new to Razor, ActiveReports, Databases, and Web Apps in general so I apologize if I’m slow on the uptake, and make sure to let me know if I left out something important.

    I’m working on converting a desktop app to a web app using Razor (not my choice, my boss’ choice, I would have gone with React). I have tried everywhere to find a way to integrate ActiveReports into Razor web apps, but all the tutorials are either outdated to the point that they’re not useful or simply don’t exist.

    To clarify, my boss said that AR 17 Professional also works for web apps, so that’s what we’re using, with .NET 6.0, VSIDE, etc. Essentially, this program will take reports from a database (already set up) and allow clients to view them using ActiveReports.

    Basically, if you know anything about these, I need some help 1. setting up ActiveReports with Razor, and 2. making reports viewable using ActiveReports on a web app. Everything else, I think I can figure out.

    If you know anything, thank you thank you thank you for helping, I have been looking into this for so many days.

  • Posted 2 November 2023, 6:25 pm EST

    Hi Grace,

    ActiveReports provides Blazor Viewer (using ASP.NET Razor), which is lightweight, has built-in support for client-side printing, and utilizes ASP.NET Core Blazor control. Like Desktop Viewers, it is feature-rich and allows you to easily view, print, and export reports. It is highly interactive, giving you the ability to enter parameters, perform sorting and drill-down, navigate to other reports using drill-through links, and so on. In addition, the Blazor Viewer is customizable and localizable according to personal needs.

    The Blazor Viewer API lets you customize the viewers and blend them into your web page. The features or buttons can be added or hidden on the viewer’s toolbar and sidebar, the parameter panel can be customized, and so on.

    ActiveReports also provides the ASP.NET Core Blazor Designer component (using ASP.NET Razor), which is a report designer optimized to be embedded in Blazor applications. It allows using the client and server parts differently.

    Please refer to the following links from our documentation for more information:

    Hope this helps!

  • Posted 6 November 2023, 2:02 am EST

    Thank you katyayny.raghuvanshi, but can I ask a (maybe?) stupid question? Is Blazor the same as Razor? Because I’m not allowed to use anything other than Razor, so I want to look up differences between the frameworks how to apply this to just Razor.

  • Posted 6 November 2023, 3:29 pm EST

    Hi Grace,

    Blazor and Razor are related technologies, but they are not the same. Razor is a markup syntax used in ASP.NET to embed C# code in HTML to create dynamic web pages. Razor is commonly used in ASP.NET MVC and ASP.NET Core projects. Blazor, on the other hand, is a web framework developed by Microsoft that allows you to build interactive web applications using C# and .NET instead of JavaScript. Blazor uses Razor syntax to define it’s UI components and integrates C# code to handle application logic. Razor is the syntax used in ASP.NET to generate dynamic web pages, while Blazor is a full-fledged web framework that integrates Razor to create interactive web applications.

    You can use the ActiveReports Blazor Viewer and Blazor Designer components within Razor pages to integrate ActiveReports into your web application, as they are designed to work with Blazor. You do not need to use the full Blazor framework, but these components allow you to leverage the power of ActiveReports within Razor-based web applications.

    You may also refer to the following links for more information:

    Hope this helps!

  • Posted 8 November 2023, 2:13 am EST

    Thank you for your clear and speedy reply! That clarifies a few things for me – thank you for your help.

Need extra support?

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

Learn More

Forum Channels