Telerik Forums
Reporting Forum
1 answer
449 views

Following the instructions on the the web site and the video for building a ASP ,NET CORE 5 app to host Telerik reporting using VS 2022.

When I paste in the block:

services.TryAddSingleton<IReportServiceConfiguration>(sp =>
            new ReportServiceConfiguration
            {
                ReportingEngineConfiguration =  ConfigurationHelper.ResolveConfiguration(sp.GetService<IWebHostEnvironment>()),
                HostAppId = "Net5RestServiceWithCors",
                Storage = new FileStorage(),
                ReportSourceResolver = new UriReportSourceResolver(
                    System.IO.Path.Combine(sp.GetService<IWebHostEnvironment>().ContentRootPath, "Reports"))
            });

I get: The name  ConfigurationHelper does not exist in the current context.

The suggested fixes do not seem right.  What do I need to include in the project  to use this?

Dimitar
Telerik team
 answered on 30 May 2022
0 answers
978 views

I have Telerik report created from visual studio report designer (.net v4.0). Now i want to convert it to .trdp file where I'm going to reuse it in different project.

but i was unable to convert it using telerik report designer.

when i use open option next button and finish button is disabled in import report wizard.

when i try to use new report option it does not have proper option to select from .net class library dll.

does anyone have any idea how to convert .net class library report to .trdp?

Mohanjana
Top achievements
Rank 1
 asked on 30 May 2022
1 answer
210 views

Just installed reporting, in VS 2022 vb..net I add a new item Telerik Report R2 2022 (Blank) and the designer opens with the "To prevent possible data loss...' message.

Value cannot be null. Parameter name instance

How do I resolve this error?

 

Kenneth
Top achievements
Rank 2
Iron
 answered on 28 May 2022
0 answers
205 views

Hello,

I have a report bound to a remote SQL Server, and when I try to run it from my developer machine I always get the same error:

I have tried to increase the timeout limit in the database connection but it made no difference.

Also, I am not being able to change connection strings from developer to production at runtime, wich could avoid this situation.

How should I proceed?

Alexandre

 

Alexandre
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 25 May 2022
0 answers
721 views

Hello,

I am trying to create a report with multi line text on a pre printed sheet of paper.

The problem is that I cannot set the line height of text and the result is not good (see the attached screenshot). If I increase the font to match the printed dot lines it looks enormous and still not good.

I tried the htmlTextBox but it does not seem to support style="line-height:1cm"

What are my options?

plig
Top achievements
Rank 1
 asked on 25 May 2022
1 answer
220 views

Hi

I have a license for Telerik Reporting.

I am the only developer and wish to add Reporting to another PC.  Could you please tell me whether both Visual Studios will be able to produce licenced output for our hosted web service?  

Many thanks,

Colin

Todor
Telerik team
 answered on 25 May 2022
1 answer
189 views

Hello,

I have an issue on a project where a report printed from wpf report viewer is never printer for certain users.

My investigations so far :

- The same report is exported to pdf and printed on the same printer without issue (that's the current solution for users)

- The same report is printed without issue on my printer

The report gets sent to the printer queue but nothing comes out of the printer, so I ended up thinking about the document name in the printer queue generated by TelerikReporting. This Document Name is very long and I think this might be the issue for some printers, this document seems to be generated from the typename of the list of ReportParameters (see the attached picture). Is it possible to change this name to something shorter ? I tried using the DocumentName property in the ReportDesigner on my trdp file but it did not change the name in the printer queue.

Otherwise did anybody encountered this kind of issue with printing ?

Thanks

Todor
Telerik team
 answered on 25 May 2022
0 answers
300 views

I have the following VB.Net class library as a dll, containing the function with a given namespace:

Imports Telerik.Reporting.Expressions

Public Class ReportExtensions
    <[Function](Category:="Report Extended Functions", [Namespace]:="ReportExtensions", Description:="Returns a string that was given to the function")>
    Public Function TestFunc(str As String) As String
        Return str
    End Function
End Class

 

Here is the location of the dll:

 

And my config file:

<?xml version ="1.0"?>
<configuration>
	<configSections>
		<section
			name="Telerik.Reporting"
			type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=15.1.21.616, Culture=en-AU, PublicKeyToken=a9d7983dfcc261be"
			allowLocation="true"
			allowDefinition="Everywhere"/>

		<section
			name="Telerik.ReportDesigner"
			type="Telerik.ReportDesigner.Configuration.ReportDesignerConfigurationSection, Telerik.ReportDesigner.Configuration"
			allowLocation="true"
			allowDefinition="Everywhere"/>    
	</configSections>

	<startup>
		<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
	</startup>

	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
		  <!--
		  <probing privatePath="path-to-the-assemblies"/>
		  -->
		  <dependentAssembly>
			<!-- Required for interoperability with older versions of Telerik Reporting -->
			<assemblyIdentity name="Telerik.Reporting" culture="neutral" publicKeyToken="a9d7983dfcc261be"/>
			<bindingRedirect oldVersion="0.0.0.0-15.1.21.616" newVersion="15.1.21.616"/>
		  </dependentAssembly>
		</assemblyBinding>
	</runtime>
  
    <Telerik.ReportDesigner DefaultWorkingDir="Examples">
    </Telerik.ReportDesigner>

	<!-- Add assembly references -->
	<Telerik.Reporting>
		<AssemblyReferences>
			<add name="ReportDesignerExtensions" version="1.0.0.0" culture="en-AU" publicKeyToken="null" />
		</AssemblyReferences>
	</Telerik.Reporting>
</configuration>

 

Here is a simple expression on a textbox on the Standalone Report Designer (also I cannot physically find my function declared in the editor window, I just have to type in the exact name):

 

The function should simply return "asd", but for some reason I see nothing when previewing the report. The textbox below works as expected.

What am I missing?


I've followed steps from Issue with User defined function in ReportViewer in Reporting | Telerik Forums and Preview report definition, which uses an external assembly with user-defined functions or CLR objects | Telerik Reporting, to no avail.

Chris
Top achievements
Rank 1
Iron
 updated question on 24 May 2022
0 answers
357 views

I am using the Standalone Report Designer and I need to be able to set a graph's bar series' (for example) ColorPalette based on an external UserFunction in an assembly (dll) that is referenced in the config.

So far I was able to set this in the Bindings property for the graph itself:

However, I'm not sure if this is working as I expected since the graph's series does not change colors according to the UserFunction (I followed steps from this and this and this and this).

I would have thought a graph's Series > BarSeries1 would have a "Bindings" property, but it doesn't.

Inside the Series > BarSeries is the ColorPalette property, and initially I have manually added a bunch of colors.

However, there is no way here to set an expression to the "Colors" collection.

I would have thought the Bindings I set for the graph would flow into here, but I think it's only applicable to the Graph's colors -- the Series would be separate from it, thus no changes taking effect.

Is there any way to set a graph's bar series' ColorPalette to an expression?

Chris
Top achievements
Rank 1
Iron
 updated question on 24 May 2022
0 answers
189 views

I have an ASP.Net Core 5 application running in Azure.  It has a Telerik report developed with the standalone developer.

I am able to run the production Azure report, downloading the created pdf report from my laptop using Chrome and Edge browsers, as well as an Android tablet.

The users are able to execute all functions with exception of creating the report.  One person was using Safari on a Mac and a second using the Chrome browser on a Microsoft Surface.

Can anyone suggest what could be causing the problem?

 

Thanks

Taras
Top achievements
Rank 3
Iron
Iron
Veteran
 asked on 23 May 2022
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?