c# - Crystal Report Viewer Not Displaying the data. ( ASP.NET ) -
i developing website using asp.net. use crystal report reporting tool. use code load report
rpt.load(server.mappath("~\\reports\\a4\\grndetailreport-a4.rpt")); rpt.setparametervalue("datefrom", dtimefrom); rpt.setparametervalue("dateto", dtimeto); rpt.setparametervalue("companyid",ddcompanynames.selectedvalue); rpt.setparametervalue("locationid", ddlocations.selectedvalue); crystalreportviewer1.toolpanelview = crystaldecisions.web.toolpanelviewtype.none; crystalreportviewer1.reportsource = rpt; crystalreportviewer1.databind();
so above code working issues. report loading. data not displaying.
when press refresh button on page displaying. whats gone wrong there?
i called function @ bottom of above code.
crystalreportviewer1.refreshreport();
but still got problem.
also when press refresh button asking parameter window. how bypas window? setting parameter values code.do need again give these window?
please try solution:
crystalreportviewer1.reportsource = rpt; rpt.readrecords(); \\crystalreportviewer1.databind();
Comments
Post a Comment