Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
| Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 29th, 2003, 10:26 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
asp.net with crystal activex viewer NagarajuK Crystal Reports 0 November 22nd, 2007 10:17 AM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
post xml data from ASP.NET app to ASP app polekat Classic ASP Professional 2 January 31st, 2007 08:44 AM
Passing CR Login info in a ASP.NET app. billbeecher@cox.net BOOK: Professional Crystal Reports for VS.NET 0 March 31st, 2005 10:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.