I have created a form (ReportViewerTelerik.cs) with a telerik reportviewer(reportVeiwer1) on the form. I have created an InstanceReportSource(TelContractirs) in a different event. I want to use the reportviewer in that event by ReportViewerTelerik myReportViewer = new ReportViewerTelerik(); and then pass the reportdocument (TelContractirs.ReportDocument = currRpt;) to the reportviewer.reportsource.
The problem is that in the event private void exportTelerik(Telerik.Reporting.Report currRpt, string saveLocation) I can instantiate the reportviewer form ReportViewerTelerik myReportViewer = new ReportViewerTelerik(); but when i try myReportViewer.reportViewer1 my intellisense does not give me reportviewer1 as an option in the dropdown thus i then cannot pass the currRpt to the reportsource.
Thanks for the help with my dilemma.
The problem is that in the event private void exportTelerik(Telerik.Reporting.Report currRpt, string saveLocation) I can instantiate the reportviewer form ReportViewerTelerik myReportViewer = new ReportViewerTelerik(); but when i try myReportViewer.reportViewer1 my intellisense does not give me reportviewer1 as an option in the dropdown thus i then cannot pass the currRpt to the reportsource.
Thanks for the help with my dilemma.