Telerik Forums
Reporting Forum
0 answers
656 views

Hi, 

Currently working with Telerik reporting . how to Bind the MongoDB database collection to the Telerik Reporting ?

 


Thanks,
vrushali

vrushali
Top achievements
Rank 1
 asked on 01 Jun 2022
0 answers
677 views

We use Web service data source in a report which has long OData query. 
After adding filters, the OData query becomes too long. That's why it causes 404.15 error.

This is probably due to the limitation of maximum Url length in browsers. It is about 2048 characters (for IE). So there different limits for different browsers and web servers. https://www.geeksforgeeks.org/maximum-length-of-a-url-in-different-browsers/

To solve the issue probably we can use POST method in the web service data source instead of GET method. 

I have  "@url", "$select", "$expand" and "$filter" parameters set in the data source. How to use those parameters in body of the post request? And is it good solution?

As a sample report you can use attached report (TestProductReport.zip). The sample report has web service data source. The query in Service URL is short in this case, but we have long query in other report.

Getting error 400 when previewing the sample report. Any idea to fix this issue?

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 01 Jun 2022
1 answer
422 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
952 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
198 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
184 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
678 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
212 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
175 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
269 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
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?