C# Teleic Winforms's reporting question

0 Answers 92 Views
Report Parameters Report Viewer - WinForms
Top achievements
Rank 1
arbam asked on 06 Jul 2022, 02:08 PM | edited on 06 Jul 2022, 04:05 PM

I am developing with c# Telerik Winforms.
And I created a .trdp file using Telerik Reporting for label output.
Then I refered to the Telerik Reporting document.


Telerik.Reporting.UriReportSource urs= new Telerik.Reporting.UriReportSource();
urs = "Report.trdp";


I wrote it like this.
However, <urs = "Report.trdp";> gets the error "Cannot implicitly convert type 'Telerik.Reporting.UriReportSource'.

I want to print it out as a file made through Telerik Reporting, but I don't know what to do.

I made a .trdp file and put the .trdp file in the Report folder of my project.
And I want to send the parameters when I click the button on the cs, and make it output from the default printer right away without a preview.
I have no idea. Help me


++++ The designation of the reportSource for the uri was successful.
But the preview won't work.

>> Telerik.Repoting.UriReportSource urs = new Telerik.Reporting.UriReportSource();

urs.uri = @"Report/Report.trdp";

urs.Parameters.Add("Column", data);


Telerik.ReportViewer.Winforms.ReportViewer rv = new Telerik.ReportViewer.Winforms.ReportViewer();

rv.ReportEngineConnection = new Telerik.ReportViewer.Common.EmbeddedConnectionInfo().ConnectionString();

rv.ViewMode = Telerik.ReportViewer.Winforms.ViewMode.PrintPreview;

rv.ReportSource = urs;



rv.ShowPageSetupDialog(); >>>> "There is no Report or the report is not previewed in the viewer"

I can't see how to print and if the value goes into the report.

Telerik team
commented on 11 Jul 2022, 12:20 PM

Hi Taeheon,

If you want to directly print the report without showing it in the viewer, then, you can use the approach from the Print a Report programmatically article. If you have .TRDP/.TRDX report definitions, then you need to use UriReportSource.

If you want to display the report in the viewer, you can follow the Windows Forms Application Overview article.

No answers yet. Maybe you can help?

Report Parameters Report Viewer - WinForms
Asked by
Top achievements
Rank 1
Share this question