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";
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.
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.