Telerik Forums
Reporting Forum
1 answer
159 views

Hi Team,

I am trying to generate a report with below object datasource PopulationByAgeRange which is a list, and I am trying to bind DemographicData property to a table which is also a list.

public class PopulationByAgeRange
    {
        public IEnumerable<DemographicData> DemographicData { get; set; }
        public string LayerType { get; set; }
        public decimal LayerValue { get; set; }
        public uint CurrentYear { get; set; }
        public uint ForecastYear { get; set; }
        public string Logo { get; set; }
    }

If PopulationByAgeRange was a single object I could bind the table to  Fields.DemographicData but since PopulationByAgeRange is a list the table is not rendered with Fields.DemographicData. Could you please let me know how to bind the table when object datasource is a list.

Dimitar
Telerik team
 answered on 30 Mar 2023
1 answer
440 views

I've been going through the documentation repeatedly for a few days and I believe that what I'm looking to use is the ReportBook but not sure where to start.

For some insight, we have roughly around 8 reports in total. These reports vary but for the most part, they are individual reports intended for one role to view. However, the problem here is that we need to take 3 of these reports and iterate over selections to create a single report for viewing.

Current Scenario:

A district manager can view reports on locations. Each location has 3 reports that can be viewed independently. Along with this, the district manager can also view an "Overview" report that sums up the data of their locations in a single report. The Overview is very basic and no detail is provided. All reports contain parameters of the location id and a start and end date for gathering data.

Problem Scenario:

The problem now is that we need for the district manager to be able to capture a full detailed report of all selected locations in a single report. In this scenario, the district manager may select from 1 to N amount of locations and a report is generated based on the selections. This generated report will show all 3 reports for each location selected.

I'm not sure where to start with such an implementation and the documentation on ReportBook isn't very detailed.

Tech stack is .NET 6 with Blazor frontend and .NET 6 backend in separate applications.

Dimitar
Telerik team
 answered on 30 Mar 2023
1 answer
635 views

I have a web application that consists of an API hsoted in Azure functions and a front end as Blazor wasm hosted in Azure blob storage as statis site.

I need to add a report for users so that each user see their own data based on data passed to the report.

1) Can reporting be used with Azure functions?

2) If yes, any sample code to guide me?

Dimitar
Telerik team
 answered on 28 Mar 2023
1 answer
74 views

The report allignment in design view of the report and the allignment in runtime are different. It's seems that the page size changes.

How to solve this?

Attach images in design time and image in runtime of the report.

 

thank you!

Momchil
Telerik team
 answered on 27 Mar 2023
1 answer
313 views

I just inherited an old reporting website that I am trying to update. I didn't write it, but needed to convert to .net 6.0 for API compatibility. I was getting an error "Cannot access the Reporting REST service." but followed this guide https://www.telerik.com/blogs/embedding-beautiful-reporting-aspnet-core-web-applications and adding the ".AddNewtonsoftJson();" part now makes it so that I instead get an Exception "The extension is not supported."
   at Telerik.Reporting.Services.Engine.ResourcesEngine.GetMimeType(String filename)
   at Telerik.Reporting.Services.Engine.ResourcesEngine.GetResource(String folder, String name, String& mimeType, Type type)
   at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetResourceCore(String folder, String resourceName, Type type)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeActionMethodAsync>g__Logged|12_1>d.MoveNext()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeNextActionFilterAsync>g__Awaited|10_0>d.MoveNext()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<<InvokeNextExceptionFilterAsync>g__Awaited|26_0>d.MoveNext()

I have trdp files. I updated the path so the IReportServiceConfiguration points to the correct directory. I set a breakpoint in my ReportController ctor and it gets hit when I try to load the report page, but then I either get the error "Cannot access the Reporting REST service. (serviceUrl = '/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)" or the one about the file extension. I've followed all the guides for enabled CORS. Do I have to do any kind of MIME configuration to support the TRDP files?

 

Please advise. Thank you

Dimitar
Telerik team
 answered on 22 Mar 2023
1 answer
229 views

Hi all,

 

Our business uses a service, ubipark.com, which utilizes Telerik to generate reports on their website. (https://console.ubipark.com/Reports).

Part of my job is to use ubi park's online report viewer to generate Bank Reconciliation reports every morning. 

I wanted to ask if it is possible to automate this process? If I could have a PDF automatically saved and emailed to me daily that would be great. Is there any way to do this? Is there any functionality available in Telerik to automated generation and delivery of reports?

 

Screenshot of UbiPark attached, this is the screen I use to generate my daily reports.

 

TIA,

Parry

Dimitar
Telerik team
 answered on 16 Mar 2023
1 answer
382 views
hi all
I am getting a 

405 Method Not Allowed to http://localhost:17390/api/reports/clients/sessionTimeout request.
The reporting service is working fine since I'm able to get formats (
http://localhost:17390/api/reports/formats) and version (http://localhost:17390/api/reports/version) of the reporting.
I've tried enabling CORS, but that didn't work.


I think the problem is related to the ALLOW in "Response Headers".
Any idea how I can remove it.

PS
http://localhost:17390 - is the WebApi service
and http://localhost:5136- is the ASP.NET MVC application

Ganesh
Top achievements
Rank 1
Iron
 answered on 15 Mar 2023
1 answer
161 views
Hola podrían ayudarme con una solución para el boton de imprimir en Reporting Telerik asp.net
Dimitar
Telerik team
 answered on 15 Mar 2023
1 answer
260 views

I am migrating from the .CS version of reports to the .trdp format.  Overall the results have been good.  I have had to do some minor tweaks to a few data structures but noting significant.

I have run into a scenario for which I have not been able to come up with a solution.  Hopefully someone will have a bright idea for me.

I have an existing report which has 7 sub-reports.  The main report has a dataset which has all the data for the child sub reports.  Each child report have a single parameter that controls logic on how the data is formatted/presented when rendered.  Under the ".cs" flavor, I had more control of the data binding process and could point each sub report to its relevant data source and set the parameter to the required values.  I seem to lack this ability in the .trdp flavors.

While 7 sub-reports sounds large,  it actually is 3 reports with the same sub-report being re-used with different data sources and parameters.

The root/parent reports data looks like the following:



List<reportAData> report1data
List<reportAData> report2Data
List<reportAData> report3Data
List<reportBData> report4Data
List<reportBData> report5Data
List<reportBData> report6Data
List<reportCData> report7Data

In theory I need to set the data source of sub report #1 to "report1Data", set its parameter to the root parameter "A".  Then set sub report #2 to "report2Data" and set its parameter to the parent parameter "B".  The same repeats for the rest of the data.

I do not know how to do that.  The instructions I have seen say to open the child sub-report and modify its's bindings to use the parents data object.  That would work however I have the same sub-report being used 3 times with different sources and different parameters.

Any suggestions for a strategy?

Dimitar
Telerik team
 answered on 15 Mar 2023
1 answer
357 views

I have implemented web report designer in Blazor Hybrid and .Netcore server application separately.  But it gives an error like mentioned below.

Uncaught TypeError: this.$toolsWrapper.kendoPanelBar is not a function
    at d.init ((index):9:818087)
    at new d ((index):9:817562)
    at o.init ((index):9:1199454)
    at new o ((index):9:1199060)
    at m.init ((index):9:488638)
    at new m ((index):9:487953)
    at new K ((index):9:875474)
    at y.init ((index):9:478896)
    at (index):9:477756
    at r.onload ((index):9:19389)

But i have implanted the libraries inside the index.html file like this.

<head>


    <!--Telerik Report Designer-->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2022.3.913/js/kendo.all.min.js"></script>


</head>

<body>

    <!--for telerik report designer-->
    <script src="_framework/blazor.webview.js" autostart="false"></script>
    <script src="_content/telerik.webreportdesigner.blazor/telerikWebReportDesignerInterop.js" defer></script>
    <script src="https://localhost:7036/api/reportdesigner/designerresources/js/webReportDesigner/"></script>
    <script src="https://localhost:7036/api/reportdesigner/resources/js/telerikReportViewer"></script>  

</body>   

 

this is the razor file

@using Telerik.WebReportDesigner.Blazor



<h1>Testing Web Designer</h1>

<style>
    #wrd1 {
        position: relative;
        width: 100%;
        height: 1880px;
        padding-right: 50px;
    }
</style>


<link rel="stylesheet" href="https://unpkg.com/@@progress/kendo-theme-default@latest/dist/all.css" />

<WebReportDesigner DesignerId="wrd1"
                   ServiceUrl="@ReportDesignerSetting.ReportRestServicePath"
                   Report="SampleReport.trdp"
                   ToolboxArea="new ToolboxAreaOptions(){ Layout = ToolboxAreaLayout.List}"
                   PropertiesArea="new PropertiesAreaOptions(){Layout = PropertiesAreaLayout.Categorized}" />

what can be the reason for this issue?

I think  <script src="https://kendo.cdn.telerik.com/2022.3.913/js/kendo.all.min.js"></script> library causing this issue. 

Also after adding this library head Telerik report viewer components are not working too. it's error like this.

telerikReportViewer:9 
        
       Uncaught (in promise) TypeError: e.children(...).kendoPanelBar is not a function
    at d (telerikReportViewer:9:112655)
    at new r (telerikReportViewer:9:112606)
    at HTMLDivElement.<anonymous> (telerikReportViewer:9:115742)
    at Object.each (telerikReportViewer:9:4145)
    at I.fn.<computed> [as telerik_ReportViewer_SideMenu] (telerikReportViewer:9:115687)
    at HTMLDivElement.<anonymous> (telerikReportViewer:9:116170)
    at Object.each (telerikReportViewer:9:4145)
    at Object.bind (telerikReportViewer:9:116082)
    at init (telerikReportViewer:9:143996)
    at start (telerikReportViewer:9:147870)
d @ telerikReportViewer:9
r @ telerikReportViewer:9
(anonymous) @ telerikReportViewer:9
each @ telerikReportViewer:9
I.fn.<computed> @ telerikReportViewer:9
(anonymous) @ telerikReportViewer:9
each @ telerikReportViewer:9
bind @ telerikReportViewer:9
init @ telerikReportViewer:9
start @ telerikReportViewer:9
Promise.then (async)
(anonymous) @ telerikReportViewer:9
Promise.then (async)
(anonymous) @ telerikReportViewer:9
Promise.then (async)
main @ telerikReportViewer:9
ReportViewer @ telerikReportViewer:9
(anonymous) @ telerikReportViewer:9
each @ telerikReportViewer:9
jQuery.fn.<computed> @ telerikReportViewer:9
createReportViewerWidget @ interop.js:8
(anonymous) @ blazor.webview.js:1
beginInvokeJSFromDotNet @ blazor.webview.js:1
(anonymous) @ blazor.webview.js:1
(anonymous) @ VM8:7
(anonymous) @ VM7:1

 

Is there any solution for this?

         
Todor
Telerik team
 answered on 14 Mar 2023
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?