Hello I am recieving the error in the subject while trying to view my report over the web. The report works fine in the actual crystal reports report making software... Just doesn't work when I view it over the web.
All the correct connections and subreports are in the .asp page so I don't know what the problem is. I am using a date/time parameter... could this be one of the causes? The code i'm using to take care of the date/time parameter (which has worked for other reports) is the following:
'///////////////
'/ Start Code //
'///////////////
set Param2 = session("ParamCollection".Item(2)
tempd = CInt( Request("P2D" )
if tempd = 0 then
tempd = 1
end if
tempm = CInt( Request("P2M" )
if tempm = 0 then
tempm = 1
end if
tempy = CInt( Request("P2Y" )
Paramvalue2 = DateSerial( CInt( tempy ), CInt( tempm ), CInt( tempd ) )
Call Param2.SetCurrentValue (CDate(ParamValue2), 10)
'/////////////
'/ End Code //
'/////////////
P.S. I use re-crystalize to create the .asp page (but i modify it accordingly afterwards).
Any help is appreciated.
Thanks in advance,
Jason Grandmaison
All the correct connections and subreports are in the .asp page so I don't know what the problem is. I am using a date/time parameter... could this be one of the causes? The code i'm using to take care of the date/time parameter (which has worked for other reports) is the following:
'///////////////
'/ Start Code //
'///////////////
set Param2 = session("ParamCollection".Item(2)
tempd = CInt( Request("P2D" )
if tempd = 0 then
tempd = 1
end if
tempm = CInt( Request("P2M" )
if tempm = 0 then
tempm = 1
end if
tempy = CInt( Request("P2Y" )
Paramvalue2 = DateSerial( CInt( tempy ), CInt( tempm ), CInt( tempd ) )
Call Param2.SetCurrentValue (CDate(ParamValue2), 10)
'/////////////
'/ End Code //
'/////////////
P.S. I use re-crystalize to create the .asp page (but i modify it accordingly afterwards).
Any help is appreciated.
Thanks in advance,
Jason Grandmaison