This is my scenerio.
i have report in xml stored in database, report has subreports as uri
<UriReportSource Uri="sub_report1.trdx">
i have rest api service that consume xml , render it as pdf and returns it as byte[].
And everything works fine but my custom resolver dosnt fire.
It seems to be that when I DO NOT use telerik_ReportViewer, resolve event doesnt invoke, am i right? My rest api service does not even inherits from Telerik ReportsControllerBase
my desire is when i call renderReport customResolver is invoked, i download xml for subreport (based on uri trdx) and i put them together with main report and return "As complete"
Can i configure it to achieve what i want ?
my server side code
//xDoc represents report in xml
using var tr = new StringReader(xDoc.Root.ToString());
var xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
var report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(tr);
ReportProcessor reportProcessor = new ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = report;
RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
return result.DocumentBytes;
On all of our reports we have a `CustomerId` and `UserId` that are part of our JWT token, this is what our reports controller looks like
[Route("api/[controller]")]
[Authorize]
[ApiController]
public class ReportsController : ReportsControllerBase
{
public ReportsController(IReportServiceConfiguration reportServiceConfiguration)
: base(reportServiceConfiguration)
{
}
}
So how can we set the CustomerId and UserId on the server side? We call our client side code like this:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/reports/",
authenticationToken: token,
viewMode: "PRINT_PREVIEW",
reportSource: {
report: fileName + ".trdp",
parameters: postData
},
//sendEmail: { enabled: true },
});[ENGLISH]
Greetings, I'm a newbie, I'm testing telerik while learning c# with visual studio and WinForms. The issue is that I have made a report that is later displayed in a reportviewer, the problem is that clicking on the print icon of the reportviewer adds a blank space to the right side of the sheet to be printed, it is worth mentioning that the sheet is set to A4 (margins 0.5mm, + width 20cm = 21cm =>A4).
Image 01 - The report design is seen,
Screenshot 02 - The reportviewer added in the windowsform is seen,
Image 03 - It is seen when the report is loaded, so far so good.
Image 04 - It is seen when I click on the print or preview icon (any of the two) and the blank space on the sheet is displayed. Even when printing a physical document, the additional space is shown.
Image 05 - This image shows the code that I use to pass data to the reportviewer and the table.
By code I have not added any configuration, only the filling of data to the table.
What am I doing wrong, do I need to configure any additional parameters? Please help.
[ESPAÑOL]
Saludos, soy novato, estoy probando telerik mientras aprendo c# con visual studio y WinForms. El asunto es que tengo realizado un informe que posteriormente se muestra en un reportviewer, el problema es que al hacer clic en el icono de imprimir del reportviewer se agrega un espacio en blanco al lado derecho de la hoja a imprimir, cabe mencionar que la hoja está configurada en A4 (margins 0.5mm, + width 20cm = 21cm =>A4).
Hello,
I had a report in my application that was working fine, but suddendly it started displaying the following message:
Unable to get report parameters. An error has occurred. Cannot read a document with the specified schema: http://schemas.telerik.com/reporting/2023/1.0. You might be using an older version of the product.
Does anyone has ever seen that?
Regards,
Alexandre
Hi,
I use the telerik reporting version: 15.2.21.1125 .NET Core 6 MVC.
The service is working correctly, but there are errors in the logs.
And sometimes when I click to generate a report, I get this error.
RequestPath: /TelerikReporting/Report/clients/f06d6c18a51/instances/d88f958a6a9/documents
Exception.StackTrace:
{
"ClassName": "System.NullReferenceException",
"Message": "Object reference not set to an instance of an object.",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"HResult": -2147467261,
"HelpURL": null,
"Depth": 0,
"Source": "Telerik.Reporting",
"StackTraceString": " at Telerik.Reporting.Services.Engine.ReportEngine.CreateDocumentCore(ReportInstance instance, Refresh refresh, String format, Dictionary`2 deviceInfo, ReportDocumentState rds, String clientID)\n at Telerik.Reporting.Services.Engine.ReportEngine.CreateDocument(String clientID, String instanceID, String format, Dictionary`2 deviceInfo, Boolean useCache, String baseDocumentID, String actionID)\n at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.CreateDocument(String clientID, String instanceID, CreateDocumentArgs args)\n at lambda_method473(Closure , Object , Object[] )\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\n--- End of stack trace from previous location ---\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"
}I would be grateful for your assistance.
Hi,
We already have a licence for the 2023 Telerik Reporting licence. However, since our application uses R3 2017 Telerik Reporting, I wanted to install that instead. However, it keeps on installing the 2023 version. Could you please tell me where the R3 2017 version is and the link to download this particular version.

We have a report which has a List element in it.
The whole report is bound to a .NET list of a data-class. The class has a property which is .NET list of a different data-class.
For some reason, this List is adding extra "empty" items at the end of our actual data.
For example,
In the above screenshot, the list to which the List is bound, has only 4 items (the red arrow is where i'm putting out the dataList.Count).
Yet you can see that after putting out the 4 valid data items, it then added two additional empty items with no data in them ($0 by 1/1/1).
Why it is adding extra items that are NOT in the dataList, and how do we get it to stop that? Those last two items should just be empty, nothing there, no text. So the List SHOULD be generating an output that looks like this:

I'm wondering if there's a similar option in the Telerik Visual Studio designer. We're thinking of moving 70 reports to Telerik, but if the design view only displays the expression and sometimes only partial context, like "[=Count(" for example, it could cause a big problem for development.
Thank you,
Evan
Hi,
I am working on a ASP.NET Core (.NET 6) web application with the main report UI using the HTML 5 viewer, working from the REST service controller.
We also require automated report exporting to run at scheduled times with predefined parameters (to be stored and emailed). SQL datasource(s) and engine settings will be the same as used in the reports controller.
Please can you advise on the best approach to process and output export files from the server-side application code.
It looks like I need to use the ReportProcessor class, but not sure how to make use of "engine" config...
Further application detail and problem encountered:
I have implemented the EF Core based report storage example and have a custom function assembly, used in most reports.
The IReportSourceResolver is provided along with the engine configuration - connections strings and custom function assembly reference - in a ReportServiceConfiguration instance for the ReportsController.
I believe that ReportProcessor does not somehow obtain the IReportServiceConfiguration the REST controller has injected.
There is no issue running code in a background job (eg. Quartz.NET):
This has worked fine for a little while, but the ReportProcessor seems to no longer find and load the custom assembly - though I'm sure it is output to the build location (and has had no recent changes).
Thanks.
We have reports designed in Telerik web report designer . Report will be displayed in HTML5 report viewer. Report can be exported to excel. Issue is, while exporting, some cells in the excel are getting merged automatically.
Is there any way to prevent this?
Following is a sample report exported as excel from viewer. It has a header section and data populated in the detail section using table wizard. But in excel the marked cells seems like merged. Each table column need to fit in one column. Anything to do while designing reports?