IsAdmin
property which gives a user full control on the
report wizard. The IsAdmin
property which is set to True by default can be programatically controlled depending on the report wizard's current user's role as shown below:
<% If Not CBool(Session("IsAdmin")) Then objWiz.IsAdmin = False End If %>The
CanAdd
and CanDelete
properties can also be used to allow a user to be able to add and delete reports.
<% 'Disable all Admin rights objWiz.IsAdmin = False Select Case Session("UserRole") Case "ADMIN" : objWiz.IsAdmin = True Case "CLERK" : objWiz.CanAdd = True Case Else : 'do nothing or hide certain report groups End Select objWiz.Init(Connection String) %>