asp.net - VS2012 Crystal Report Viewer Group Tree Hide -
asp.net. webform crystaldecisions.web, version=13.0.2000.0 crystalreportsviewer.
i want hide / disable l.h. pane containing group tree button.
the displaygrouptree property marked obsolete , has no effect.
i have set toolpanelview="none" has no effect.
the hiding of group tree problem has existed earlier versions published answers not work or translate version far can see.
maybe building report wrong. (it displays ok).
private void showreport(myclasslibrary.report report) { connectioninfo cn = new connectioninfo(); cn.servername = "myserver"; cn.databasename = "mydatabase"; cn.userid = "myuser"; cn.password = "mypassword"; string reportdirectory = server.mappath(".") + "\\reports\\"; crystalreportsource rs = new crystalreportsource(); session["currentreportsource"] = rs; crystaldecisions.web.report r = new crystaldecisions.web.report(); r.filename = reportdirectory + report.reportpath; rs.report = r; crv.reportsource = rs; parameterfields p = crv.parameterfieldinfo; parameterfield puserid = new parameterfield(); puserid.name = "@user_id"; parameterfield pstartdate = new parameterfield(); pstartdate.name = "@start_date"; parameterfield penddate = new parameterfield(); penddate.name = "@end_date"; parameterdiscretevalue puseridvalue = new parameterdiscretevalue(); parameterdiscretevalue pstartdatevalue = new parameterdiscretevalue(); parameterdiscretevalue penddatevalue = new parameterdiscretevalue(); timespan t = new timespan(30, 0, 0, 0); datetime startdate = datetime.today - t; datetime enddate = datetime.now; //**live code*** //couponuser user = (couponuser) session["currentuser"]; //puserid_value.value = user.userid; //***test code*** puseridvalue.value = 2; //******** pstartdatevalue.value = startdate; penddatevalue.value = enddate; puserid.currentvalues.add(puseridvalue); pstartdate.currentvalues.add(pstartdatevalue); penddate.currentvalues.add(penddatevalue); p.add(puserid); p.add(pstartdate); p.add(penddate); foreach (tablelogoninfo logoninfo in crv.logoninfo) { logoninfo.connectioninfo = cn; } rs.databind(); }
try turn off:
crystalreportviewer.toolpanelview = toolpanelviewtype.none
to turn on:
crystalreportviewer.toolpanelview = toolpanelviewtype.grouptree
group button appear in both
Comments
Post a Comment