Hello,
I'm new to Telerik Reporting and hope you can point me in the right direction.
I'm working on a WPF application that will need to export a report to PDF. The user does not need to see the report directly prior to it being exported.
Currently I have a report file saved as a .trdp file, which I am able to export to PDF based of of existing examples.
Additionally, I've been able to add data to the report prior to printing successfully. I'm simply wondering if what I'm doing is the best way to accomplish my results.
I currently create a new UriReportSource and set the Uri to the local trdp file.
I think add parameters, one at a time to the reportSource...
reportSource.Parameters.Add(new Telerik.Reporting.Parameter("LogDate", "5/3/2022"));
Once the parameters have been added I use a report processor to render the report.
While this appears to work perfectly fine, I'm wondering if there's a more efficient method, such as passing a JSON string to a report.
If not that's fine and I'll make this work.
Any insight is appreciated.
Hello.
I have a simple report with a PageHeaderSection, DetailSection & PageFooterSection.
There are textboxes in the PageHeaderSection, including ones for column headers. The ones towards the top of the section show fine but the textboxes for the column headers that are near the bottom of the section do not show in Preview mode.
If I move the column headers up higher in the section, they will show in Preview. I am using the Windows (standalone) report designer.
Any help is appreciated.
I would like to upgrade my version of Telerik Reporting from version 13 to 16, but the latest version that works well is 14.0.20.115, then I have some problems. I'm using the Designer for Visual Studio 2019 with the .Net Framework 4.
My report uses the NeedDataSource function to dynamically select the correct ObjectDataSource, but as of version 14.0.22.119 the Member function is never called. No error is generated, it's just as if the dataSource was not defined. I also tried several other revisions (15.2 and 16.0) and got the same result. If I force a particular objectDataSource in the report, it works but I don't want to copy the same report 3 times just because I have 3 different objectDatasource.
This is what my NeedDataSource function looks like:
private void MyReport_NeedDataSource(object sender, System.EventArgs e) { CurrentReport = ((Telerik.Reporting.Processing.Report)sender); var paramProviderName = CurrentReport.Parameters.Where((param) => param.Key.ToLower() == "providername").Single().Value; switch (paramProviderName.Value.ToString()) { case "provider1": DataSource = odsProvider1; break; case "provider2": DataSource = odsProvider2; break; case "provider3": DataSource = odsProvider3; break; } }
As a second problem, my user functions no longer appear in the Edit Expression popup.
Is there a solution for these 2 problems?
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:
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?
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!)
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
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.
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.