I'm incorporating a ReportViewer into my WPF app. To do so, it seems I must include the following:
<ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.Input.xaml" />
<ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.Navigation.xaml" />
<ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.ReportViewer.Wpf.xaml" />
However, including those seems to change a lot of other styles in my application that I'd rather not have changed. I'd like to limit the scope of those changes to the ReportViewer itself. Because, in the instance I'm working on right now, my ReportViewer is the only thing in a TabItem, I can put those resources in the TabItem, but then they'll be sprinkled throughout my app.
As you've likely figured out, I'm not the best at working with styles, but what I'd like to know is how to include those without their impacting anything else.
Thanks in advance!
As I'm working with it more intensely, I'm getting the impression that ReportViewer is "the orphan nephew living in the cupboard under the stairs". It appears to work very differently from the other components. Data binding just doesn't seem to work as it should. For example, the ReportViewer works very differently from the RadGridView. In RadGridView there is an "ItemsSource" property that can be bound to a property in the ViewModel. However, in ReportViewer there doesn't appear to be anything similar. The only thing I've found in the examples is a binding to the "ReportSource", but that's a fundamentally different thing. The "ReportSource" is like the template, which, if we continue the comparison, is like the "RadGridView.Columns". In my opinion, there really needs to be a good way to bind to the DATA. It looks like the intent is there, since a report can be built with an "Object Data Source", but I've found no way to bind that to dynamic data in the ViewModel, per se.
Please tell me I'm wrong and point me to an example where the "ReportSource" is configured declaratively in the ReportViewer, but the data comes directly (and simply) from the ViewModel.
Thanks!
Is there a possibility to use Azure Blob Storage as the ReportSourceResolver in the REST API instead of file or database storage?
builder.Services.AddSingleton<IReportServiceConfiguration>(sp =>
new ReportServiceConfiguration
{
// The default ReportingEngineConfiguration will be initialized from appsettings.json or appsettings.{EnvironmentName}.json:
ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
// In case the ReportingEngineConfiguration needs to be loaded from a specific configuration file, use the approach below:
//ReportingEngineConfiguration = ResolveSpecificReportingConfiguration(sp.GetService<IWebHostEnvironment>()),
HostAppId = "ReportingNet6",
Storage = new FileStorage(),
ReportSourceResolver = new UriReportSourceResolver(System.IO.Path.Combine(sp
.GetService<IWebHostEnvironment>()
.ContentRootPath,
"Reports"))
});
Hello,
I noticed that the Excel option is NOT listed in this export menu by default (i.e. telerikReportViewerTemplate-18.1.24.514.html )
I am reading thru these two docs to figure out how to get the Excel option to show up in Export menu.
https://docs.telerik.com/reporting/doc-output/export-formats
https://docs.telerik.com/reporting/doc-output/configure-the-report-engine/extensions-element
I do not see any special configuration in our appsettings.json. I only added the assembly ref for some special functions, etc.
"telerikReporting": { "assemblyReferences": [ { "name": "SynReportsLibrary" } ] },
Is there anything simple to do on the front end, perhaps in the HTML View Template params ? Or is it done in the backend appsettings ?
Thank you,
Bob
I downloaded the samples provided in GitHub and was very surprised and disappointed that there wasn't a single example of using the WPF ReportViewer.
What I'm doing seems trivial, but I'm stuck. I've created a report in the stand-alone designer and saved it as a local file. The report connects to SQL server. I added the report server as per the instructions found at https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/wpf-application/how-to-add-report-viewer-to-a-wpf-.net-core-project. However, when I run the application, I get the following:
I've looked everywhere I can think of and have not found a solution to this simple problem. Any help would be appreciated.
Thanks!
I'm upgrading all of the Telerik packages in an application to the latest version. The final piece is to get ahold of the files telerikReportViewer.kendo-18.2.24.806.min.js and telerikReportViewer-18.2.24.806.min.js.
I've tried following the instructions to use the CDN: Using CDN - Download and Installation - Kendo UI for jQuery (telerik.com). I'm not finding these files there.
I also read this article: HTML5 Report Viewer Requirements and Browser Support - Telerik Reporting. It states that these files are served by default from the Telerik Reporting REST Service, but I'm having a hard time understanding the process of actually getting them.
It seems that, for the previous version, we had local copies of these files in our project. I'm not sure where we got them from. Can anyone provide instructions on where to find these files?
Keep having this error. Nuget package on both projects is the latest '18.2.24.806'. Based on what I've read I need to update my links/scripts in my index.html probably, but I cannot find the correct combinations.
The projects are a Blazor WASM .net 8 project and a .net8 minimal api (though I used a controller to get the reporting service running correctly).
Here is my index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Production Scheduler</title>
<base href="/" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="https://demos.telerik.com/report-server/api/reports/resources/js/telerikReportViewer"></script>
<link href="ProductionScheduler.Web.styles.css" rel="stylesheet" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="css/telerik/navigation-drawer.css" />
<link rel="stylesheet" href="css/telerik/all.css" />
<link rel="stylesheet" href="css/telerik/listview.css" />
<link rel="stylesheet" href="css/telerik/custom-styles.css" />
<link rel="stylesheet" href="css/telerik/telerik-button.css" />
<link rel="stylesheet" href="css/telerik/grid-command-button.css" />
<link rel="stylesheet" href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2022.3.913/styles/kendo.default-main.min.css" />
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" ></script>
</head>
<body>
<div id="app" class="fit-screen">
<svg class="loading-progress">
<circle r="40%" cx="50%" cy="50%" />
<circle r="40%" cx="50%" cy="50%" />
</svg>
<div class="loading-progress-text"></div>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script src="_framework/blazor.webassembly.js"></script>
<script>
window.blazorCulture = {
get: () => window.localStorage['BlazorCulture'],
set: (value) => window.localStorage['BlazorCulture'] = value
};
</script>
<script src="_content/Telerik.ReportViewer.Blazor/interop.js" defer></script>
</body>
</html>
I also am receiving this error in my dev console, but am not sure if it is related or not.
Any help is appreciated!
Hello,
Since my previous post, we've been evaluating the functionalities of the designer.
One of our main requirement is to display data as crosstabs.
We intend to use a WebServiceDataSource to fetch the data as JSON so that the report will only have to display them, without having to make any calculations or containing business rules.
I've included the JSON sample that I'm using below. As you can see, we have a school, which contains classes, which contains a list of students and a list of subjects. Each student has evaluations : a grade in one of the subject of the class. Each subject has a display order and a grade average of the class.
Each report page must display one class with a crosstab. The crosstab must display the grades of each students for each subjects.
Now, I struggle to show the following information (in yellow in the screenshot below) :
For each subject, the average class (from the JSON) should be displayed at the bottom of the crossbar
Some information :
I'd be glad if you could advise me on the best way to solve those issues.
Also, I've two additional questions :
Thanks a lot for your help and I can provide more information if needed or if something is unclear.
Here's the JSON which is the main Datasource. Also, I'm attaching the .trdx (in the .zip) to this post.
{ "schoolName": "Muggle School", "schoolImage": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=", "classes": [ { "name": "East123", "roomNumber": 10, "studentAmount": 3, "students": [ { "id": 12345, "name": "Snow", "surname": "John", "evaluations": [ { "subjectCode": "ENGL", "grade": 6 }, { "subjectCode": "FREN", "grade": 3 }, { "subjectCode": "MATH", "grade": 5.5 } ] }, { "id": 12346, "name": "Potter", "surname": "Harry", "evaluations": [ { "subjectCode": "ENGL", "grade": 4 }, { "subjectCode": "FREN", "grade": 4.5 }, { "subjectCode": "MATH", "grade": 4.5 } ] }, { "id": 12347, "name": "Parker", "surname": "Peter", "evaluations": [ { "subjectCode": "ENGL", "grade": 5 }, { "subjectCode": "FREN", "grade": 5.5 }, { "subjectCode": "MATH", "grade": 6 } ] } ], "subjects": [ { "code": "ENGL", "label": "English", "displayOrder": 2, "classAverage": 5 }, { "code": "FREN", "label": "French", "displayOrder": 3, "classAverage": 4.5 }, { "code": "MATH", "label": "Mathematics", "displayOrder": 1, "classAverage": 5.5 } ] }, { "name": "South123", "roomNumber": 20, "studentAmount": 3, "students": [ { "id": 12348, "name": "Sparrow", "surname": "Jack", "evaluations": [ { "subjectCode": "ENGL", "grade": 6 }, { "subjectCode": "FREN", "grade": 3 }, { "subjectCode": "MATH", "grade": 5.5 } ] }, { "id": 12349, "name": "Black", "surname": "Sirius", "evaluations": [ { "subjectCode": "ENGL", "grade": 4 }, { "subjectCode": "FREN", "grade": 4.5 }, { "subjectCode": "MATH", "grade": 4.5 } ] }, { "id": 12350, "name": "Baggins", "surname": "Frodo", "evaluations": [ { "subjectCode": "ENGL", "grade": 5 }, { "subjectCode": "FREN", "grade": 5.5 }, { "subjectCode": "MATH", "grade": 6 } ] } ], "subjects": [ { "code": "ENGL", "label": "English", "displayOrder": 2, "classAverage": 5 }, { "code": "FREN", "label": "French", "displayOrder": 3, "classAverage": 4.5 }, { "code": "MATH", "label": "Mathematics", "displayOrder": 1, "classAverage": 5.5 } ] } ] }
I'm trying to use Telerik.Reporting 14.1.20.618 in a NET 8 AWS Lambda. The lambda project makes reference to another class library where there's also a reference to Telerik.Reporting, but whenever I try to generate a report, I keep getting the following error message:
Could not load file or assembly 'Telerik.Reporting, Version=14.1.20.618, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'. An operation is not legal in the current state. (0x80131509)
Resolved assembly's simple name should be the same as of the requested assembly.
at System.Runtime.Loader.AssemblyLoadContext.ValidateAssemblyNameWithSimpleName(Assembly assembly, String requestedSimpleName) at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)