I am having an issue passing a sqlstring into crystal via an ASP page. I have checked my code, and my connection, everything seems ok.
In fact the crystal report page displays the report just fine. The problem is that it seems to be ignoring the sqlstring variable that limits the dataset and the report displays <b>ALL</b> the data from the view instead of the records in the select statement.
I used the exact same script I use to browse the data and I modified the page to include these lines:
I pass the variable with Response.Writes and the values displayed are correct. I looked at similar pages on my local intranet for comparison and except for database specifics they are the same as mine, yet they seem to work ok.
Is the problem Crystal??? I can not seem to make this work.
In fact the crystal report page displays the report just fine. The problem is that it seems to be ignoring the sqlstring variable that limits the dataset and the report displays <b>ALL</b> the data from the view instead of the records in the select statement.
I used the exact same script I use to browse the data and I modified the page to include these lines:
Code:
%>
<!-- #include file="AlwaysRequiredSteps.asp" -->
<%
session("oApp").LogonServer "PDSsql.dll", "ServerName", "dbName", "Usename", "Password"
session("oRpt").SQLQueryString = sqlstring
%>
<!-- #include file = "MoreRequiredSteps.asp" -->
<!-- #include file = "SmartViewerActiveX.asp" -->
</center>
</body>
I pass the variable with Response.Writes and the values displayed are correct. I looked at similar pages on my local intranet for comparison and except for database specifics they are the same as mine, yet they seem to work ok.
Is the problem Crystal??? I can not seem to make this work.