Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
code>>>


DataSet _ds = new DataSet();

_ds = ReservationBL.GRV_FilterAvailability(roomtypeid);

ReportDocument rpt = new ReportDocument();
Report r = new Report();

crystalReportViewer1.ReportSource = _ds.Tables[0];

crystalReportViewer1.Refresh();


suggest me what should i do/
Posted
Comments
[no name] 30-Apr-15 4:51am    
Check your database connection is established or not and also check with conditions while bugging?
Member 10038070 30-Apr-15 5:33am    
i am able to fetch record from db based on id but error is here

ReportDocument rpt = new ReportDocument();
CrystalReport1 cry = new CrystalReport1();
cry.SetDataSource(_ds); //error "Invalid file path"
OR
rpt .SetDataSource(_ds); //error "Invalid file path"
crystalReportViewer1.ReportSource = _ds.Tables[0];
crystalReportViewer1.Refresh();

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