Telerik Forums
Reporting Forum
1 answer
15 views

Im new to Telerik reporting and am creating a class library in .net 4.81 to house the report.

When I run the Terlerik Report Wizard 2025 Q1

It starts up and asks me to select a Report template.

I select Band Report

Then it returns the message:

Can not start wizard. Make sure the reports default editor is the form editor

How do I fix this?

Side Note: I do have a previous .cs report build and I can view it in the designer and do preview.

Currently I have the Telerik.Reporting assembly referenced in the Class Library

Dimitar
Telerik team
 answered on 21 Apr 2025
1 answer
20 views

Our application allows users to enter Rich Text in some fields and we want to be able to print out that Rich Text in a report.

We are using Telerik Report Designer v19.0.25.313

Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 16 Apr 2025
1 answer
13 views

I am using a standalone report templates to display the data from SQL data source with using stored procedure. If I  add the columns in the select statement of stored procedure causing the below error.

Designer details,

For datasource since we are passing connection string dynamically we cannot refresh the configuration manually from report designer. In that case how do we resolve this issue?

Thanks in advance

Suresh
Top achievements
Rank 1
Iron
 answered on 15 Apr 2025
1 answer
16 views
I am generating an image of a highly complex and customized report as an image. From that image I am then generating a data uri to pass off to another report as part of its JSON datasource. The property that contains the data uri is being set to the value property of a picture box (see image for picture box settings). However, no image ever renders in the report. I've stepped through the code and confirmed the data uri is valid and I can load the image that is generated using the data uri in my browser. Is there some additional configuration I need to do to get this working with the picture box element?
Ivet
Telerik team
 answered on 14 Apr 2025
1 answer
18 views

I have base configuration in appsettings.json (.Net 9 application)

    "telerikReporting": {
        "assemblyReferences": [
            {
                "name": "My.Assembly.Reports"
            }
        ],
        "extensions": [
            {
                "name": "PDF",
                "parameters": [
                    {
                        "name": "FontEmbedding",
                        "value": "Subset"
                    }
                ]
            }
        ]
    }

It works. But now I have multi layered configurations. There is appsettings.json and multiple other configuration files as customer1.json, customer2.json etc. Every customer has own settings and ovn assemly with reports. All is registered in program.cs in standard way. And it does not work. Seems that reportings have some hardcoded logic to read only from file named appsettings.json and whole configuration system of .Net is ignored.

It ends with errors:

An error has occurred while processing Report 'XXX':
 The type "XXX.TelerikReport.ObjectDataSources.XXX.Root" contained in assembly 
"XXX.TelerikReport.ObjectDataSources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" cannot be loaded. 
To help improve the application's security, the reporting engine prevents loading types that are not essentially needed or listed as trusted by the user. If you 
consider particular types or assemblies as trusted include them in the corresponding TypeReferences or AssemblyReferences element of the 
'Telerik.Reporting' configuration section in the application's configuration file

 

Am I right? How can I split configs to multiple settings files? Can reporting work with configuration system as designed in .Net?

Todor
Telerik team
 answered on 14 Apr 2025
1 answer
16 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
13 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
19 views

Our .NET 8 project references .NET Standard Telerik.Reporting.dll.

After upgrading to Telerik Reporting 19.0 we get compiler warnings because of conflicting references.

Apparently, Telerik.Reporting.dll references .NET 9 DLLs (for example "System.Text.Json 9.0.0") while our .NET 8 project obviously references .NET 8 DLLs ("System.Text.Json 8.0.0").

I'm surprised this is happening because I thought Telerik.Reporting as a .NET Standard DLL should be independent of these .NET versions?

Do we have to go back to Telerik Reporting 18 to avoid these conflicts?

We are on .NET 8 because it has LTS (long term support) by Microsoft.

 

Dimitar
Telerik team
 answered on 03 Apr 2025
1 answer
13 views

Hi Telerik,
I am designing a report in Telerik Report Designer, and I have used a crosstab as shown below:


and the value of ABC (category) and XYZ is retrieved from the API. Suppose ABC are country/color/subject and XYZ are Nepal, Netherlands/red, green/maths, and English as shown below:



but expands according to the data we selected in the filter, and this table shows the category of the selected values accordingly.

My requirement:
I need 4 categories in one row only, and the remaining should be in another row. How can we do that?

Is there any way we can fix the width of the crosstab? so that the width of the crosstab will be fixed on the basis of the report width.



Regards,
Prabesh Shrestha

Todor
Telerik team
 answered on 03 Apr 2025
1 answer
31 views

Hi all,

I'm developing a report and I don't know how to layout it.

The data source is a JSON DataSource and his structure is the following :



public class School
{
	public string Name { get; set; }
	public List<Class> Classes { get; set; }
}

public class Class
{
	public string Name { get; set; }
	public List<Student> Students { get; set; }
	public List<Teacher> Teachers { get; set; }
}

public class Student
{
	public string FirstName { get; set; }
	public string LastName { get; set; }
}

public class Teacher
{
	public string FirstName { get; set; }
	public string LastName { get; set; }
	public string Role { get; set; }
}

The desired layout is illustrated on the join file DesiredLayout.png and the report definition is joined too (containing datasource).

As you can see in the report definition, I don't use Header section. Because my list of teachers, on the top right, cannot be in a Header section.

And my problem is when the list of students for one class take more than one page, the school name, the class name and the list of teachers don't repeat.

My second problem is for the numbering on the footer. I don't know how to make it correctly.

Thank you for your help, regards
Dimitar
Telerik team
 answered on 01 Apr 2025
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?