Telerik Forums
Reporting Forum
1 answer
358 views

How to add more space on the Y axis at the minimum value and at the maximum value so that the line and the data points look good in the line chart?

 

Hope you can help!

Todor
Telerik team
 answered on 29 Apr 2021
2 answers
557 views

I follow this post to setup report designer: https://docs.telerik.com/reporting/web-report-designer-setup-in-dot-net-framework
- Create a WebApi project.

- Add references to Telerik.Reporting.dll, Telerik.Reporting.Services.WebApi.dll, Telerik.WebReportDesigner.Services.dll (they are in C:\Program Files (x86)\Progress\Telerik Reporting R1 2021\Bin)

- Register routes in Global.asax

- Create controller that inherit ReportDesignerControllerBase

- Create view to display report designer

The error I got is the REST service have invalid routes. So when the view request for api/reportdesigner/resources/js/telerikReportViewer it return 404 error.

When I go to Help section of the WebApi project, I see the route table for the report controller is like this (see attachment)

Do anyone know why does this happen and how I can fix?

Thanks in advance!

Kaloyan
Telerik team
 updated answer on 29 Apr 2021
1 answer
148 views

Hello, we are trying to upgrade from telerik reporting 2017.R3 => 2021.R1 and are running across some wierd functionality. In the 2021 version the generated pdf has incorrect subdata (nothing other than the version has changed.)

I've attached a full sample that illustrates the issue.  You can run both the Works and Borked project to see the generated pdfs.

Do we need to change something in our code for this to work properly?

 

Thanks!

(Apparently i'm not allowed to attach zip files.  Please let me know how to pass along the sample projects to you.)

Todor
Telerik team
 answered on 28 Apr 2021
0 answers
233 views

Hello,

We have Float type parameter in our report. Default value of the parameter is zero. When we preview this report on Standalone Designer it works fine (see WhenRunningOnStandaloneReportDesigner.PNG), but when we preview this report on Html5 Report Viewer it shows error (see ErrorWhenRunningOnHtml5ReportViewer.PNG, Internal Server Error
Invalid value for parameter 'FloatParameter')

To reproduce this problem we used "CSharp.Net5.Html5IntegrationDemo" project and created sample report (this report is in attached archive file SampleReportToTestFloatTypeParameter.zip). So, we want that it should not show error when we run the report on html5 report viewer.

Is there any solution for this?

 

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 28 Apr 2021
0 answers
142 views

Hello,

I'm  using Telerik Reporting version 15.0.21.326 and WPF report viewer with REST services. When my custom report source resolver return null or custom exception I have exception "Object reference not set to an instance of an object" with stack trace:

at Telerik.ReportViewer.Common.RestServiceProxyEngine.<>c.<GetParameters>b__14_0(JsonExceptionData ex)
at Telerik.Reporting.Services.HttpClient.HttpRequestHelper.PostJson[T](String request, HttpClient client, Object value, Func`2 getDefaultValue, IEnumerable`1 formatters)
at Telerik.Reporting.Services.HttpClient.GenericHttpClient.<>c__DisplayClass13_0`1.<PostJson>b__0(HttpClient client)
at Telerik.Reporting.Services.HttpClient.LocalLoginSession.MakeRequest[T](Func`2 action)
at Telerik.Reporting.Services.HttpClient.GenericHttpClient.PostJson[TResult](String action, Object value, Func`2 getDefaultValue, IEnumerable`1 formatters)
at Telerik.Reporting.Services.HttpClient.GenericHttpClient.PostJson[TResult](String action, Object value, Func`2 getDefaultValue, Boolean ignoreSerializableAttribute)
at Telerik.ReportViewer.Common.RestServiceProxyEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)
at Telerik.ReportViewer.Common.ReportEngineRenderingController.GetParameters(ParameterCollection paramValues)
at Telerik.ReportViewer.Wpf.ReportViewerModel.ReloadParameters(IRenderingController controller)
at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshController(Boolean reloadParameters)
at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportCore(Boolean reloadParameters, LogHistoryRecord logHistory) 

Aleksey
Top achievements
Rank 1
Veteran
Iron
 asked on 28 Apr 2021
0 answers
382 views

Hi,

I'm trying to setup the telerik reporting on a asp net core project targeting net462 and I can't configure it unless I use the app.config, but using the app.config is not an option, nor changing to .net core, so, anyone knows a way to setup this properly?

Thank you

Paulo
Top achievements
Rank 1
 asked on 27 Apr 2021
1 answer
442 views

Hi there

I'm trying to print labels with a label printer using Telerik Reporting. I just updated it to the latest version to make sure that I don't have any version conflicts. In my application I created a report by designer with just one textbox to make sure it's not my data which causes the problem.

I then use this code on button click:

01.// prepare report
02.Telerik.Reporting.Report report = new TestLabel();
03.report.PageSettings.Margins = new TelerikDrawing.MarginsU(new TelerikDrawing.Unit(0), new TelerikDrawing.Unit(0), new TelerikDrawing.Unit(0), new TelerikDrawing.Unit(0));
04.report.PageSettings.PaperKind = PaperKind.Custom;
05.report.PageSettings.PaperSize = new TelerikDrawing.SizeU(new TelerikDrawing.Unit(97, TelerikDrawing.UnitType.Mm), new TelerikDrawing.Unit(97, TelerikDrawing.UnitType.Mm));
06. 
07.// set printer settings
08.PrinterSettings printSet = new PrinterSettings();
09.printSet.Copies = 1;
10.printSet.PrinterName = LabelPrinterName;
11. 
12.// create report processor
13.ReportProcessor repProc = new ReportProcessor();
14.repProc.PrintController = new StandardPrintController();
15. 
16.InstanceReportSource repSrc = new InstanceReportSource();
17.repSrc.ReportDocument = report;
18. 
19.// print report
20.repProc.PrintReport(repSrc, printSet);

 

I set a breakpoint on line 20 on the PrintReport method. When I continue the code, it takes about three minutes to finally print the report and the code to continue. I'm wondering why this is taking so long. Is there anything wrong with my code during preparation, is there a setting missing or causing problems?

Cheers,
Roman

Todor
Telerik team
 answered on 27 Apr 2021
12 answers
1.0K+ views

Hello,
I am working with Reporting using HTML5 Report Viewer. I have designed Custom Report Resolver for showing up the reports. My reports have WebServiceDatasource that use OData to load data from database. Sometimes OData can through an exception. For example, When OData request select a property which doesn't exist in requested table, then there is error in OData saying like: "Could not find a property named 'NewProperty' on type 'EntityType'".

Custom Report Resolver also through exception, because there is error in OData. But, custom report resolver showing error message with this text: "Response status code does not indicate success: 500 (Internal Server Error)".

I need real error message. Can someone know how to get internal error message as the OData error message?

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Apr 2021
11 answers
1.5K+ views

It is announced that the new release Telerik R1 2020 includes a new report viewer control for Blazor applications. 

2 questions:

1) Is it possible to see a demo? I couldn't find one on the telerik site.

2) Will the Web report designer work in Blazor?

Dimitar
Telerik team
 answered on 23 Apr 2021
5 answers
1.3K+ views

Hi there,

currently we're able to use Telerik Reporting to fulfill our project requirements (.NET MVC), which is to generate Realtime resume/CV (curriculum vitae) in a divided page. Left side of the page is the form to collect the resume data, right side of the page is the Report Viewer. Basically, the processes are :

  1. As user, I fill the resume form
  2. Using an event, after 1 second we collect that data and put it as Report parameter and then send it to our report using the same method as here https://docs.telerik.com/reporting/html5-report-viewer-howto-custom-parameters
  3. Simultaneously, data collected is also updated into our database from backend process.

We did a test to create resume on our project (which already deployed into our Azure environment) simultaneously by some users. What happened is, every time the report refreshed, consume about more or less 300MB of RAM per user.

We did another test, which is to exclude process no. 3 to make sure our backend process is not the problem. The test result is the same.

Do you have any suggestion regarding our issue ? Thank you.

Telerik version we use : Telerik reporting R3 2019 SP1 (13.2.19.1030)

Todor
Telerik team
 answered on 23 Apr 2021
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?