Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir i m doveloping a windows application which is generate a bill .. i m using a Microsoft Reporting Rdlc Report to generate Bill for customer But sir this is my first project That way i m in problem to generate a bill .. Rdlc Report Bind with data base and show in my Machine ussing Physical path but When i m make a setup file and instoll to client machine report not show ing and getting error "cannot found report.rdlc" like this

I m using this Code
C#
  private void bindreport()
        {
            BusinessLayer blayer = new BusinessLayer();
               
            DataTable dt = new DataTable();
            dt = blayer.getBill(Global.CompanyId, BusinessLayer.MyBillNo);
            reportViewer1.LocalReport.Refresh();
            reportViewer1.LocalReport.DataSources.Clear();
            ReportDataSource datasource = new ReportDataSource("dsBill", dt);
            reportViewer1.LocalReport.DataSources.Add(datasource);

            string exeFolder = Path.GetDirectoryName(Application.ExecutablePath);
            string reportPath = Path.Combine(exeFolder, @"ReportBill.rdlc");

            reportViewer1.LocalReport.ReportPath = reportPath;
this.reportViewer1.RefreshReport();


... give me a path to do this
Posted
Updated 21-Oct-13 4:21am
v4

Error message clearly tells you that appropriate file not exist there. So make sure the file exists or copy the report file to the path. And try again.
FYI Deploying RDLC files in local mode for ASP.NET applications[^]
Deploying/Publishing RDLC files[^]
 
Share this answer
 
please go through
http://documentation.devexpress.com/#Xaf/CustomDocument3235[^]
In setup - application folder you should have rdlc repoprt file also.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900