Hi,
I'm very new to ASP and Crystal and I'm trying to pass date parameters (start and end dates in the form dd/mm/yyyy) to a Crystal Report through an ASP page, but Crystal simply displays the graph with all the dates present and ignores the parameters. Can anyone help with this? This is the code I'm using. Thanks v. much!
set ParamDefCollection = Session("oRpt"
.Parameterfields
set session("Param"
=ParamDefCollection
set MyParam1 =session("Param"
.item(1)
set MyParam2 =session("Param"
.item(2)
call MyParam1.SetCurrentValue(cdate(startdate),10)
call MyParam2.SetCurrentValue(cdate(enddate), 10)
session("oRpt"
.MorePrintEngineErrorMessages = False
session("oRpt"
.EnableParameterPrompting = False
set crtable = session("oRpt"
.Database.Tables.Item(1)
crtable.SetLogonInfo "", "", "",""
I'm very new to ASP and Crystal and I'm trying to pass date parameters (start and end dates in the form dd/mm/yyyy) to a Crystal Report through an ASP page, but Crystal simply displays the graph with all the dates present and ignores the parameters. Can anyone help with this? This is the code I'm using. Thanks v. much!
set ParamDefCollection = Session("oRpt"
set session("Param"
set MyParam1 =session("Param"
set MyParam2 =session("Param"
call MyParam1.SetCurrentValue(cdate(startdate),10)
call MyParam2.SetCurrentValue(cdate(enddate), 10)
session("oRpt"
session("oRpt"
set crtable = session("oRpt"
crtable.SetLogonInfo "", "", "",""