Telerik Forums
Reporting Forum
0 answers
188 views

I working on learning Telerik reporting to replace our current ReportViewer implementations. Right now I'm trying to get a simple test case working. We current make a typed datatable as our report source and have an assortment of parameters to display on the report.  I'm having trouble finding the basic syntax to do this. 

Let's assume I have a the following pieces:

  • Report  - rptTestReport.cs
  • ReportViewer - ReportViewer1
  • Parameter on rptTestReport.cs called prmTestParameter
  • DataTable - dtMyData

How do I assemble all this together, connection the report to the reportviewer, the parameters to the report, and the datatable to the report?

This is what I have so far, but attaching the parameter to the report is wrong.

            UriReportSource reportSource = new UriReportSource();
            reportSource.Uri = "rptTest.cs";
            reportSource.Parameters.Add(new Telerik.Reporting.Parameter("prmTestParameter", "Hello World!"));
            ReportViewer1.ReportSource(reportSource);

I've found documents showing how to hard code the report to the reportviewer, but I need to do it in code.

Can anyone touch up my code with the right syntax to push me in the right direction?

Bernie
Top achievements
Rank 1
Iron
Iron
 asked on 02 May 2022
4 answers
733 views
Hello Where to set the thousand separator in a Web Report Designer?
Mateusz
Top achievements
Rank 1
Iron
 updated answer on 29 Apr 2022
1 answer
644 views

Hi

I have been looking around for a sample and found many links broken or for which the code is not working anymore (dating back from 2007-2010!)

  • I have a dataset containing multiple tables already in memory.
  • This dataset is created by the application (not directly coming from the database).
  • I have created a typed dataset from it to be able to create a report (including sub-reports for additional tables of my dataset)
  • How can I programmatically pass the tables[1] to the sub-report (call it srHoldings)?
  • I don't want to re-query the database, I want to use the dataset already in memory.
2 answers
156 views

Hello,

I've seen it in the WPF report viewer, that I'm using, perhaps the problem is also in other report viewers.

When the report viewer is loading the report, the number of pages is increasing until the report is fully loaded. If I change the page number before the report is fully loaded, the displayed page is reset to 1 when the report is fully loaded!

To view the problem, you need to have a big report that takes enough time to load, so you can change the displayed page before it is fully loaded.

Regards

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 28 Apr 2022
1 answer
311 views

I am trying to sort a table Asc/Desc based on a parameter so that the user can sort as they wish.

I know the sorting option is available with interactivity, but that doesn't work in my scenario because I need to save the setting outside of the report. The software we're developing can save the parameter as the user chooses, which is why I need a parameter rather than interactivity.

I haven't found a way to do do this, and wondering how to accomplish this.

Marvin
Top achievements
Rank 2
Veteran
Iron
 answered on 27 Apr 2022
0 answers
160 views

When using the table control and putting in conditional formatting to suppress rows, the table does not properly suppress the rows.

Given a table that has 4 rows per group. Each cell in the row has formatting applied in that there is a black border on the cells.

You then apply conditional formatting to make certain cells not visible (and turn on "Can Shrink"). What appears to be happening is the content of the cell is hidden and the cell collapses. However, the top and bottom border are still visible and start to stack up so that you end up with either multiple lines or a large thick line at the bottom of the cell.

I have attached a sample of the preview.

Note that this can be easily reproduced by putting a sub report into a cell in the table and then applying a rule to conditionally suppress it.

Perhaps we are doing something wrong?

Note that this is in the standalone designer. We don't have access to the Visual Studio version.

Brian
Top achievements
Rank 1
 asked on 27 Apr 2022
1 answer
255 views

Hi team !

 

 I want to get dynamic image in Binding path for PageSettings.BackgroundImage.ImageDate but i don't know how to get image in Expression

 

 

Please Help me

Thanks

Nay San

Dimitar
Telerik team
 answered on 27 Apr 2022
0 answers
423 views

After upgrading the Telerik Report to version 1021, the report viewer is unable load properly.

In the console, I'm getting an error: Failed to load resource: the server responded with a status of 404 (Not Found) ... http://localhost:8080/api/reportservice/resources/js/telerikReportViewer-14.2.20.1021.min.js

Is this because of the Telerik Reporting REST API not properly hosted?

How should I fix this issue?

Thanks!

1 answer
179 views

Hi,

I have two pie charts in my report. when i export the report as excel, the charts not showing correctly. Instead its showing collapsed. But i need to see it as i see it in report viewer. 

I attached the image how its showing.

Let me please know if there any solution

Thank you.

Todor
Telerik team
 answered on 27 Apr 2022
1 answer
281 views

Hi All, 

I'm using HTML5 ASP.NET MVC Report Viewer & have report book with two reports. when i export it as TIFF the file only contain last report. 

Are there any solution to fix my issue. If any one want more information please comment below..

Thank you

Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?