ASP.Net Core Razor page

Posted by: hafiz.hassan on 22 April 2021, 1:19 pm EST

    • Post Options:
    • Link

    Posted 22 April 2021, 1:19 pm EST

    Hi,

    1. Do you have tutorial how to set up Active Reports 15 with existing project

      using ASP.Net Core 5 Razor pages?

      I only found this old article but AR15 already supported netcore so I think the old asp.net web service is not required anymore.

      https://www.grapecity.com/blogs/how-to-use-activereports-in-aspnet-core-20

    2. It is possible to print report on server side in ASP.Net Core?

      (printer is install on web server itself)

      Currently I’m doing this with FlexReport on ASP.NET using code below:

    C1FlexReport rep = new C1FlexReport();
    rep.Load(reportFileName, reportName);
    rep.Render();
    rep.Print(c1PrintOptions);
    

    It is possbile with AR15 & ASPNet Core?

  • Posted 22 April 2021, 2:52 pm EST

    Hello,

    1

    Yes, it is possible. You can check the attached sample to implement the same,

    JSviewer_Mod.zip

    2

    Yes. It is possible to print server side. Please refer to the following link:

    https://www.grapecity.com/activereportsnet/docs/v15/online/print-methods-in-activereports-developer.html

    Thanks,

    Mohit

  • Posted 22 April 2021, 3:57 pm EST

    Hi,

    I’ve successfully created viewer in Razor page but for the server-side printing it failed. I received error “Could not load file or assembly System.Resources.Extensions, Version=4.0.0.0…”.

    However, I managed to solve it by installing ‘System.Resources.Extensions 5.0.0’ nuget package.

Need extra support?

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

Learn More

Forum Channels