I have two crystal reports in my Project.
I am having SaleBillReport.rpt file in My project. which is being loaded using report object method whose code is given below.
First report is shown as -
Case 1:
SaleBillReport rptObj = new SaleBillReport();//My Rpt file name
rptObj.SetDataSource(_ReportDataSet);
_reportViewer.ReportSource = rptObj;
Second report is shown as -
Case 2:
ReportDocument objReportDoc = new ReportDocument();
objReportDoc.Load(@"D:\\" + "MyReport.rpt");
ReportViewerNew.ReportSource = objReportDoc;
My problem is that while deploying this project i don't need to Put any .rpt file anywhere. It is in-built in My application.
But i have to put my 2nd .rpt file to any path for display.(i don't want to put anywhere) So how i in build case 2 .rpt file in my project during Deployment.
Thanks in advance