Below code is working fine
CrystalDecisions.CrystalReports.Engine.ReportDocument rp;
string reportPath = Server.MapPath("LogReport.rpt");
rp = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
sql = "Select 'User Name :'+lmaster.l_name as username,'' as sno, userdetail.user_ip as uip from userdetail order by servertime";
dsmain = mydata.GetDataSet(sql, 1);// this method my own method will be return query data in dataset.
rp.FileName = reportPath;
rp.SetDataSource(dsmain.Tables[0]);
crviewer.ReportSource = rp;
When i export my crystal report using the export button in the viewer then the next time when i run someother report in the same page i get load report failed error. Do you have any idea on this ? If you have any solutions . Please email me to manojbavikati@gmail.com
ReplyDeletePlease send me your code by mail, i will check it.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteOk, If you have any problem Just post your message on this...
ReplyDeleteThanks I fix my problem changing reportdocument for reportname (ej: rptCheck() )
ReplyDeleteGracias