I have configured Asp.NET Core 5 IReportServiceConfiguration in DI for ReportsControllerBase with ReportServiceConfiguration.ReportingEngineConfiguration set to IConfiguration with custom IConfigurationProvider providing ConnectionStrings which can change in runtime so the provider notifies about configuration changes via IChangeToken.
But the updated ConnectionStrings are not propagated to the service.
To fix it, I have made this hack:
reportEngineConfigurationChange = engineConfiguration.OnChange(() =>
{
telerikConfigurationManagerReset();
configuration.ReportingEngineConfiguration = engineConfiguration;
});which listens to IConfiguration changes and calls TelerikConfigurationManager.Reset (via reflection) and sets configuration again.
It would be nice if this would be implemented on Your side, please.
The application is published as a single-file application on Linux. Here is the stack trace of the error:
[21:52:53 ERR] Value cannot be null. (Parameter 'path1') System.ArgumentNullException: Value cannot be null. (Parameter 'path1') at System.IO.Path.Combine(String path1, String path2) at Telerik.Reporting.Configuration.JsonConfigurationProvider.LoadConfiguration() at Telerik.Reporting.Configuration.JsonConfigurationProvider.InstantiateProvider() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.Lazy`1.get_Value() at Telerik.Reporting.Configuration.JsonConfigurationProvider.get_Instance() at Telerik.Reporting.Configuration.TelerikConfigurationManager.GetConfigurationProvider() at Telerik.Reporting.Configuration.TelerikConfigurationManager.get_ConfigurationProvider() at Telerik.Reporting.Configuration.TelerikConfigurationManager.GetReportingSection() at Telerik.Reporting.Configuration.ReportingConfiguration.get_Default() at Telerik.Reporting.Processing.RenderingExtensionManager.get_RenderingExtensions() at Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfoCore(String name) at Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfo(String format) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo, CancellationToken cancellationToken) at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo) at HaliburtonSoftware.Reporting.Generation.GenerationProcessor.CreateReport(InstanceReportSource reportSource, String fileName, ReportFormat reportFormat) at HaliburtonSoftware.Reporting.Generation.GenerationProcessor.ProcessReport(String culture, String reportName, ReportFormat reportFormat, String fileName, IList`1 parameters, Hashtable deviceInfo)
I also had lots of issues trying to get the application version information of a single-file application and had to revert to using an environmental variable in the container.
Hello,
I can see that we can operate over a file definition using save, open, and save as. It would also be nice to be able to download the report definition as well.
I have C# external c# function that my report is uses =pws_service.Reports.ReportFunctions.IndentLevel(Fields.Pad, Exec('table5', AllDistinctValues(Fields.Pad)))
It looks like the report designer is unable to locate the c# function code. Is there a configuration to say where this code lives?
When applying the property Docking with either of the following values will cause the Visual Studio Report Designer to squeeze the table down to 0 width:
While the value 'Right' will cause the table to be rendered outside of the report-section on the left side. This is reproducible with the example report CryptoCurrencies.cs.
Hi,
Yesterday I upgraded our application to Angular 11 and the builds started failing with a couple of different errors. First of all there was this with Ivy enabled:
Error: ./node_modules/@progress/telerik-angular-report-viewer/dist/dependencies/initExtDeps.js
Module not found: Error: Can't resolve '.\telerikReportViewer.kendo.min' in '/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies'
resolve '.\telerikReportViewer.kendo.min' in '/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies'
using description file: /home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/package.json (relative path: ./dist/dependencies)
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/package.json (relative path: ./dist/dependencies/telerikReportViewer.kendo.min)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.tsx doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.js doesn't exist
as directory
/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min doesn't exist
[/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min]
[/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.ts]
[/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.tsx]
[/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.mjs]
[/home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/dependencies\telerikReportViewer.kendo.min.js]
@ ./node_modules/@progress/telerik-angular-report-viewer/dist/dependencies/initExtDeps.js 9:19-62
@ ./node_modules/@progress/telerik-angular-report-viewer/dist/es/telerik-report-viewer.component.js
@ ./node_modules/@progress/telerik-angular-report-viewer/dist/es/main.js
@ ./libs/handling/ship-dossiers/src/lib/handling-ship-dossiers.module.ts
@ ./libs/handling/ship-dossiers/src/index.ts
@ ./apps/aline-portal/src/app/app.routing.ts
@ ./apps/aline-portal/src/app/app.module.ts
@ ./apps/adash/src/app/app.module.ts
@ ./apps/adash/src/main.ts
[91m @ multi ./apps/adash/src/main.tsChecking the initExtDeps.js file, this error is completely legit since it has a path to file with Windows notation. Our builds run in Linux containers, making this fail, obviously. Changing that file manually makes to requre like so
window.kendo = require('./telerikReportViewer.kendo.min');makes the build succeed.
When disabling Ivy I'm getting the following error, which I was unable to resolve:
Error: Cannot determine the module for class TelerikReportViewerComponent in /home/sylvain/aline-web/node_modules/@progress/telerik-angular-report-viewer/dist/cjs/telerik-report-viewer.component.d.ts! Add TelerikReportViewerComponent to the NgModule to fix it.The ObjectDataSource component in the Web Report Designer does not have complete design-time support. The major things that are missing:
I have projects on .NET Core and I want to use the System.Text.Json serializer that is the new default, but reporting relies on Newtonsoft.Json.
---
ADMIN EDIT
There are two approaches that can be taken right now to solve this:
OPTION 1: define separate endpoints (services, projects) for the different tasks - they can still use the same database layer through a shared project, depending on the architecture you have. This would let you have separated services with the appropriate serializers without custom attributes and code (see below). For example, create a separate project for the reporting REST services.
OPTION 2: add some custom decoration on the endpoints so you can choose which serializer is used on each, you can find some examples here: https://stackoverflow.com/questions/59650907/how-to-configure-two-json-serializers-and-select-the-correct-one-based-on-the-ro - the point being to register a serializer depending on the endpoint based on your own code rather than let the framework put one in for all endpoints.
NOTE: This would be a breaking change.
---