Porting a sa,ple ASP CR viewer app to ASP.NET
Hello,
I have taken a working sample Crystal 9 ASP viewer application and am running it within the .Net environment. I have changed the file extensions to ".aspx" and made the syntax corrections for the app to run.
I can instantiate the Crystal application object as follows:
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.9" )
End If
I then attempt to open a report using:
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if
Set session("oRpt") = session("oApp").OpenReport("C:\CRW\Sample.rpt", 1)
The app fails on the openreport() method giving the following message:
"Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."
This same code works perfectly as ASP code outside of .Net.
The report is a Crystal 9 report and does no updating at all.
Has anyone run into this and more importantly, found a workaround?
Thanks in advance,
Jeff
|