Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters to Crystal using ASP

Status
Not open for further replies.

hayley

Programmer
Mar 14, 2001
13
GB
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 "", "", "",""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top