Telerik Forums
Reporting Forum
13 answers
2.5K+ views
Hello.  We've recently purchased Telerik Reporting and so far for our initial needs, it's been great.  But now for a new project, we are trying to basically create a large contract/invoice template.  The reason is we have 13 different contract types that can be created, but they all have the same text in sections while different text in others.  For the changed text, we are pulling it from a SQL DB and putting it into textboxes in this new report.

The problem is how the CanGrow property of the Textbox behaves.  In our original need, we set the width for a basic name/address textbox to be the max it would ever be, but the height to be small.  When the data was pulled in, the textbox would automatically grow vertically to accomodate all the data.  Our needs are different this time and instead of the textbox auto-growing vertically, we need it to auto-grow horizontally (or shrink as well).  So if we set a textbox to a size that's too big for "tiny text", it would auto-shrink horizontally to fit, or auto-grow for text like "This is a very long sentence that wouldn't normally fit into the textbox width".

My question is, if this is possible, how do we do this?  We've tried setting both CanGrow and CanShrink to True, also tried setting MultiLine and TextWrap to False, but nothing seems to work.  Is there any way?  Thank you.
Giuseppe
Top achievements
Rank 1
 answered on 08 Apr 2019
3 answers
203 views
Hi,

I'm trying to create a scatter graph with DateTime points on the x-axis. A problem here is that the labels on the x-axis overlap when there are to many data points.

A solution that I found was to manually determine my Labelsteps, this solutions doesn't work for all my use cases. Is there a way to auto-scale the labelsteps? I've read on the forum that the "Axis AutoStep Functionality" could be a solution. Is this feature available for reporting graph? I cannot seem to find this functionality.



Thanking you for your asssitance.
Ivan Hristov
Telerik team
 answered on 08 Apr 2019
4 answers
505 views

Hi,

 

We have a requirement to set the NoHeader parameter value to true in some reports and false in others. Is there a way to do it from the code behind of the report? I have found a way for window forms application (https://www.telerik.com/forums/programmatically-set-noheader). But our requirement is for web application

 

Regards,

Majar
Top achievements
Rank 1
 answered on 08 Apr 2019
1 answer
123 views

I have enabled interactive sorting in the Telerik reporting but I now want to style the header of the table(reduce the size between button and the heading text) and the sort button. Is it possible to do this in the report viewer

 

Regards,

Majar

Silviya
Telerik team
 answered on 08 Apr 2019
1 answer
326 views

In the html5 report viewer, we are using a jquery selector

 $("reportViewer").telerik_ReportViewer({...});

But what if we want to use vanila javascript selector for it like,

 document.getElementById("reportViewer").telerik_ReportViewer({...});

but when I am using this it is showing me an error: Uncaught TypeError: reportViewer1.telerik_ReportViewer is not a function

 

Silviya
Telerik team
 answered on 05 Apr 2019
3 answers
268 views

We are using the Telerik for MVC, and we have an MVC application we wish to actually add a report to.  But when we do, we get the following error:

Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

I cannot seem to find a System.Web.Http.dll that is earlier than the v 5.2 on my system.  I tried adding it via NuGet, but it won;t add it, giving me the following error:

PM> Install-Package System.Web.Http -Version 4.0.0
Attempting to gather dependency information for package 'System.Web.Http.4.0.0' with respect to project 'ReportTest', targeting '.NETFramework,Version=v4.6.1'
Attempting to resolve dependencies for package 'System.Web.Http.4.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'System.Web.Http.4.0.0'
Resolved actions to install package 'System.Web.Http.4.0.0'
Install failed. Rolling back...
Package 'System.Web.Http.4.0.0' does not exist in project 'ReportTest'
Package 'System.Web.Http.4.0.0' does not exist in folder 'C:\VensureApplications\ReportTest\packages'
Install-Package : Could not install package 'System.Web.Http 4.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not c
ontain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<<  System.Web.Http -Version 4.0.0
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 

So how do I get this thing to work?

 

Using VisualStudio 2015

Telerik v2018.1.117.545 (Kendo.mvc.dll)

 

Silviya
Telerik team
 answered on 05 Apr 2019
1 answer
137 views

When binding a table to a Web Service Data Source the parameter does not work in the report.

 

The configure wizard will successfully pull data using the "Download" button, but the report render does not properly pull the parameter value and insert it into the URL string.  Using fiddler the report is sending the ToString of the object instead of the value.  Have only tested this for "Query" type parameters.  Works fine when used as the report Data Source, seems to only happen when you connect the data source to a table.  (This build also has numerous bugs when applying conditional formatting to table rows, haven't had time to write up anything on them yet, not sure if related.) 

 

I have connected to a web service "GetRequiredDataJson" that requires a parameter "workOrderId". 

 

Redacted Request From Fiddler When Rendering Report:

GET <Deleted URL HERE>/GetRequiredDataJson?workOrderId=System.Object%5B%5D

Travis
Top achievements
Rank 1
 answered on 04 Apr 2019
1 answer
177 views

Hi

I'm trying to make a PageBreak in the detailReportGroup dynamic based on a parameter. If parameter is yes PageBreak should be 'After' else 'None'. But I can't add a IIF condition to the PageBreak property.

Thanks for all replies!

Joel

Neli
Telerik team
 answered on 04 Apr 2019
2 answers
175 views

Hello, I am a novice user using Telerik UI for ASP.NET MVC and Telerik Reporting.

To tell you the conclusion I wonder if I can create a report using a refined external data source.

=> I would like to use datasource which is calculated by c # calculation of the result of procedure obtained from grid retrieval and use it directly in report.

Is there such a way?

--------------------

Detail

 

The web page I'm creating now As a result of StoredProcedure Two select results are displayed.

 

result 1: james 29 LA john 25 Korea

result 2: 290,000

 

I do not know why the procedure creator caused the output to be output separately, but I need to output two results in succession.

 

Output as shown below.

james ...

john ...

290,000

 

To do this, we combine two result datasources in the c # section if the number of dataSet.Table is two.

The report did not find an approach to where the results of the procedure are stored.

 

I am not good at English, but I hope that my intentions are well communicated.

Thank you.

Neli
Telerik team
 answered on 04 Apr 2019
1 answer
693 views

I am using Telerik Report Designer Software.
I have a problem: I want to set a margin between the page header and the table header when the table header is repeating.
On the first page it looks good, but on the second page it looks like this

(In attachment where the red represents the page header and the grey represents the table header.)
How can I put space/margin/line break between page header and table header on the second page of the report?

Nasko
Telerik team
 answered on 03 Apr 2019
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?