Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Mitch"

Just a quick update @bobingham

I decided at the weekend to use Stimulsoft Reports instead of Telerik Reports.

My previous project used both Telerik reports and Stimulsoft Reports. I found Stimulsoft reliable and easy to install as opposed to Telerik which was tricky to install and slightly fragile.

I wanted to stick with Telerik for my latest project as I use Telerik ASP Net Core controls and there is a bit of an advantage to sticking with a single vendor.

However, faffing about with Telerik installing reports in ANZ has put me off. I got Stimulsoft installed and working in about 20 minutes.

Hopefully it's going to be the correct decision in the long run.

Thanks again for your input Bob.

Hi @davidharrison

Only just seen this, many thanks for your input, that's really helpful.

Mitch

Many thanks for sharing some of your code @bobingham

I can relate to "I'm getting too old for this game", I first started coding for a living in the mid 80s when Pascal was popular. Not the multitude of languages we have to learn today.

I don't feel so bad asking for help as you found "that this was a difficult process of trial and error."

I'll have another go at getting it going, and report back how I get on.

Cheers.

Thanks for responding Bob, I was concerned I might be the only person trying to use Telerik Reporting with ANZ.

I've been using Telerik Reporting successfully over the past 5 years without any issues in my other projects, but after following the normal Telerik Reporting installation procedures it appears that the reports service is not runnning correctly.

As I'm using Core 3.1, I'm following these two links to get the app up and running

https://docs.telerik.com/reporting/telerik-reporting-rest-service-aspnetcore-mvc-core3 https://docs.telerik.com/reporting/manual-setup-of-html5-report-viewer-in-asp-net-core-3

In the code that sets up the Reports Service, I have used the following in a non ANZ test project to ensure it works :-

namespace AspNetCoreDemo.Controllers
{
   using Microsoft.AspNetCore.Mvc;
   using System.Net;
   using System.Net.Mail;
   using Telerik.Reporting.Services;
   using Telerik.Reporting.Services.AspNetCore;

   [Route("api/reports")]
   public class ReportsController : ReportsControllerBase
   {
       public ReportsController(IReportServiceConfiguration reportServiceConfiguration)
           : base(reportServiceConfiguration)
       {
       }
   }
}

I created a basic ASP.Net Core 3.1 App to test the Reporting and it works correctly, so when I navigate to URL {applicationRoot}/api/reports/format, I get

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

However, If I repeat the installion approach above on ANZ it returns a 404 error when I navigate to URL {applicationRoot}/api/reports/format.

If I remove /format and navigate to URL {applicationRoot}/api/reports instead, I get

{"message":"An error has occurred.","exceptionMessage":"No component for supporting the service DpmsCloud.Web.Areas.App.Controllers.ReportsController was found","exceptionType":"Castle.MicroKernel.ComponentNotFoundException","stackTrace":"   at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext)\r\n   at Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)\r\n   at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional)\r\n   at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext)\r\n   at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"}

I'm guessing that I have to follow a slightly different path to install Telerik Reporting for ANZ, but I'm not sure what needs changing.

Incidently, I had originally had issues with Telerik Controls not returning data correctly until I decorated the Controllers with [DontWrapResult], so I have experienced ANZ interferring with my normal installation practices before.

Once again, many thanks for offering to help Bob.

Has anyone successfully managed to get Telerik reporting working with ASP Net Zero Core jQuery?

Thanks @ismcagdas

The main challenge is that Telerik Reporting needs to Add a REST Web API to the Web Application. I hope this won't cause any issues.

https://docs.telerik.com/reporting/using-telerik-reporting-in-applications-rest-service-cache-management-overview

https://docs.telerik.com/reporting/integrating-the-report

HI @dparizek

I'm about to start integrating Telerik Reporting into ASP Net Zero Core Jquery and I was wondering if you have managed to get it to work?

It would be good to get your feedback either way.

Many thanks

Thanks for the quick response, it was really so the guide could be updated.

Incidently, the code for GetHelloWorldInput is also missing, I assume it's as follows :-

public class GetHelloWorldInput
{
    public string Name { get; set; }
}

Also, a couple of other issues.

The guide refers to WidgetMultiTenancySides, I think it was supposed to be MultiTenancySides. In the DashboardConfiguation.cs, WidgetHelloWorld name is called WidgetRecentTenants.

There appears to be a missing step in the "Developing-Mvc-Core-Customizable-Dashboard" Step by Step Guide.

In the "Creating a New Widget" section "Step 1. Create an API"

"GetHelloWorldOutput" doesn't appear to be defined anywhere.

It would be useful to be able to control the number of concurrent users per login. This request from @bobingham is what I'm looking for too. https://github.com/aspnetzero/aspnet-zero-core/issues/1414

Showing 41 to 50 of 103 entries