I have developed a page where you can select a value from a drop down menu and it will access the Crystal Report. I used Mircrosoft Frontpage and found that when I licked 'submit' the url was messy and needed cleaned up, I did the following.
You need to write a small asp script (getasp.asp) that will take the information submitted, clean it up, and redirect the browser.
If isObject(session("oRpt") then
set session("oRpt" = nothing
End If
Set session("oRpt" = session("oApp".OpenReport(Path & ReportName, 1)
' Turn off sepecific report error messages
Set oRptOptions = Session("oRpt".Options
oRptOptions.MorePrintEngineErrorMessages = 0
%>
<%
'==================================================================
' Retrieve the Records
'==================================================================
%>
<%
On Error Resume Next
session("oRpt".ReadRecords
If Err.Number <> 0 Then
Response.Write "An Error has occured on the server in attempting to access the following data source - " & session ("pubs_ConnectionString"
Else
'==================================================================
' Create the Page Engine
'==================================================================
If isObject(session("oPageEngine") then
set session("oPageEngine" = nothing
End If
Set session("oPageEngine" = session("oRpt".PageEngine
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.