Telerik Forums
Reporting Forum
1 answer
16 views

Hello,

Im retrieving some images from the database and im trying to show them like in a grid view like the mobile gallery. I've been trying with List and a picture box but each image shows in its on row.

What im trying to do

Column1          Column2
   Image1            Image2
   Image3           Image4

What im getting

Column1          Column2
   Image1           
   Image2
   Image3           
   Image4

Any help appreciated

Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 14 Jul 2025
1 answer
62 views

Hi,

I'm trying to migrate a project using the legacy WebForms report viewer to html5.

Now our use case requires me to build a report book at runtime, pass different parameters in per report and then add that report to the book. Once I collected all the reports in the book I want to show that specific book in the html5 viewer.

However I'm unsure as to how I can achieve this since the ReportSource doesn't allow me to add the instanciated book in.

Here is a quick example of roughly what I'm trying to do in this case:

Dim rs As New Telerik.ReportViewer.Html5.WebForms.ReportSource()
Dim multiQuoteBook As New Telerik.Reporting.ReportBook()
For Each quoteId In quotes
    Dim localQuoteReport As New Telerik.Reporting.TypeReportSource() 
    localQuoteReport.TypeName = GetType(Reports.QuoteReport).AssemblyQualifiedName
    localQuoteReport.Parameters.Add("LoginEntryId", LoginEntryid)
    localQuoteReport.Parameters.Add("DocumentId", quoteId)
    multiQuoteBook.ReportSources.Add(localQuoteReport)
Next
' How do I assign "multiQuoteBook" to the ReportSource "rs" ?
ReportViewer1.ReportSource = rs

Any input is appreciated.

I found this thread here: ReportBook using HTML5 Viewer in Reporting | Telerik Forums where the dev basically gave up on it as it seemed to hard. It's quite strange that I'm struggling with the same issue.

1 answer
40 views

When trying to render our telerik reports into PDF we sometimes get an error System.ObjectDisposedException: Cannot access a disposed object.

The version of Telerik.Reporting library we are currently using is 18.3.24.1112.

We checked the data being applied to the report and none of our objects are being disposed before being applied. 

I noticed that there was a memory leak fix to pdf rendering that occurred in version 18.3.24.1218.

Could this be the cause of the error or could it be something else?

1 answer
42 views

Hello. Can somebody please help me with custom user functions.

I am using Kendo reporting version 2025 Q1 (19.0.25.211) in my Net Core 8 project. I am using dynamically created reports (not from any template or similar).

Here is the code behind all with config and everything.

Config in app.config xml file:

In my Startup.cs in ConfigureServices I am calling this extension method:
services.AddTelerikReporting();

Here is the extension method:

Here is my custom report resolver:

Here is my custom user function:

I am using it when creating report xml like this:

private static void SetCategoryDateFormat(QueryResult resultDataModel, int dateIndex, GraphGroup categoryGroup, string dateFormat)
{
    var value = "NSP.NSPDateFormat(" + StringFormatHelper.RemoveDotsAndCommaAndSpace(resultDataModel.Columns[dateIndex].PropertyPath) + ", '" + dateFormat + "')";
    categoryGroup.Groupings.Add(new Grouping("=" + value));
}

I can confirm that in xml I receive from my rest api, in my custom report source resolver I get that in my xml string representing report definition which I than deserialize. 

The report is ok, but the call to this custom user function gives me this error:

The expression contains object 'NSP' that is not defined in the current context.

The resolver and custom user function are all in the same assembly NSP.Web.

Also here is the code in razor page for hmlt5 report viewer:

Can anybody give me an idea on why this error, what is happening? 

I have wasted a lot of time trying this to work?

Please don't hesitate to ask further questions.

Thanks in advance.

 

 

 

 

1 answer
403 views

Hai,

I am spending hours and hours trying to get a simple Telerik Report to work in my Blazor web app.
All documentation on the website is for ASP.Net Core 6 and the ASP.Core 7 samples I can find, do not work for me...

I have a simple Blazor Web App that communicates with a Blazor Server using controllers and endpoints like. The data is stored in a SQL Server.

I have a table 'Genders' and I simply want to show a report with the fields id and name of table genders using the 'api/gender' endpoint to get the genders: 

var response = await httpDefaultClient.GetAsync("api/gender");
        if (response.IsSuccessStatusCode)
        {
            genderList = await response.Content.ReadFromJsonAsync<List<GenderModel>>();
        }

Is there a complete walkthough, thus including creating the Telerik report itself, creating the reportcontroller, in the server, adding services etc.

I am totally new to Telerik and I simply do not understand how to implement Telerik in my application.
Hope somebody can direct me to a good, working, sample or walkthrough... 

Regards, Marc

1 answer
36 views

I have embedded Telerik report designer in angular application. I want to clone the existing report and create new report programmatically.  Can anyone provide pointer on how to achieve this? Closest I could find is this i.e. copy over all the report components one by one but I find it laborious and little risky if I miss anything while copying over. 

Thanks!!

1 answer
47 views

We are trying to create a user interface with UI for Blazor that allows users to view and choose parameter values for their reports without having to go into the report viewer. However, the complexity of some of the expressions used for things like display value, available value filtering, and default values pose a challenge to evaluating those parameters ourselves. Is there a way to programmatically evaluate those parameters for the above using the telerik reporting library so that we can display them in our UI?

 

We are using the Telerik.Reporting.Report object to get the parameter data, and have also tried instantiating a InstanceReportSource for the object as well but both have only given the expression for display value/available values/default values rather than the evaluated values.

Todor
Telerik team
 answered on 29 Oct 2024
1 answer
62 views

Hi

I'd like to programmatically (from an OpenEdge ABL procedure) run a Telerik Report (TRDP file) that has been saved on disk.

I'd also like to point that report file to 2 datasources at runtime that are also on disk "invoiceHeader.json" and "invoiceLines.json". 

The output must be a PDF file.

Please can you point me in the right direction.

Many thanks

Jon

 

1 answer
242 views

I'm trying to find an error in my code, but I don't even know where to look. How can we get support from Telerik to help identify the exception?

How do we get more detail from errors like this?

[MissingMethodException: Method not found: 'System.Collections.Generic.List`1<System.Collections.Generic.IEnumerable`1<!0>> Telerik.Reporting.Processing.DocumentParametersManager`1.GetParametersByReports()'.]
   Telerik.ReportViewer.WebForms.ReportRenderOperation.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext) +0
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +226
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() +88
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +49
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +182
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

 

 

Ivet
Telerik team
 answered on 20 Sep 2024
1 answer
125 views

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)



I assume it shouldn't be a compatibility issue since that Telerik version supports standard 2.0
Dimitar
Telerik team
 answered on 06 Sep 2024
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?