Thulasiram pakala

Thulasiram pakala

  • 911
  • 872
  • 115.5k

SSrs Report issue

Jul 15 2019 5:19 AM
Hi
 
after publish i got this error but locally its working fine in bin folder i copy dll files also
 
An error occurred during local report processing.
 
The report definition for report 'F:\webdocs\groupspc\pashuaushadha.kar.nic.in\RDLCReports\DrugwiseConsolidatedReport.rdlc'has not been specified
Could not find a part of the path 'F:\webdocs\groupspc\pashuaushadha.kar.nic.in\RDLCReports\DrugwiseConsolidatedReport.rdlc'.
 
i am using this code any one help for this one
  1. private void bindinstitutewisedrgrpt(string drugcode)  
  2. {  
  3. try  
  4. {  
  5. // rptdrgconsolidate.Reset();  
  6. rptdrgconsolidate.ProcessingMode = ProcessingMode.Local;  
  7. rptdrgconsolidate.LocalReport.ReportPath = Server.MapPath("~/RDLCReports/DrugwiseConsolidatedReport.rdlc");  
  8. DataTable dt = new DataTable();  
  9. dt = GetData(drugcode);  
  10. if (dt.Rows.Count > 0)  
  11. {  
  12. rptdrgconsolidate.Visible = true;  
  13. ReportDataSource DS = new ReportDataSource("Drugwiseconsolidatedrpt", dt);  
  14. rptdrgconsolidate.LocalReport.DataSources.Clear();  
  15. ReportParameter[] parms = new ReportParameter[1];  
  16. parms[0] = new ReportParameter("@drgcd", drugcode);  
  17. rptdrgconsolidate.LocalReport.DataSources.Add(DS);  
  18. }  
  19. else  
  20. {  
  21. rptdrgconsolidate.Visible = false;  
  22. Alert("No Records");  
  23. }  
  24. }  
  25. catch(Exception ex)  
  26. {  
  27. Alert(ex.Message.ToString());  
  28. }  
  29. }  

Answers (1)