Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
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
 
Old October 8th, 2004, 06:21 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem when changing the Location property

We are using Crystal 9.0 Professional for developing our reports and the CR.NET for publishing them on the web. The issue is the following. I programmatically access and change the Location property of the ReportDocument object, to a different database, but using the same stored procedure. When i do this, a formula in the report throws an exception, and tells me that the {?@Epoca} does not exist when it actually does. The strangest part of this is, that if i don't explicity change the location property the report works flawless, but if i change the location, even to the same string that the report current have, then the report throws the exception. We actually don't know why but as soon as we modify this property, even with the same value... it throws the exception.

If i even write this:

foreach(CrystalDecisions.CrystalReports.Engine.Tab le crTable in oRpt.Database.Tables)
{
crTables.Location = oRpt.Database.Tables[0].Location
}

Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically changing table location csloanATYC BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 November 6th, 2008 02:32 PM
Changing Database location for crystal report swarnapy VB How-To 0 August 27th, 2006 11:37 PM
changing data source location at run time sandeepjakhotya Crystal Reports 0 April 16th, 2006 05:40 AM
changing property doesn't work Vanni VB.NET 4 July 1st, 2005 07:50 AM
Changing Database Location in Runtime jstokes8447 Crystal Reports 0 December 28th, 2004 06:37 PM





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