Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET 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 January 30th, 2004, 04:08 PM
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch 8, Crystal Reports Engine, "Set D.B. Location"

I am working through Chapter 8, using the downloaded code as is. When trying to run the application to get the Employee Listing, that works fine (p. 247).

But when clicking on the "Set Database Location" button, the solution dies on this line of code:

      If myTable.Location.ToString() = "Employee" Then
---> myTable.Location = "Employee_Current"
      End If

The error message is :
An unhandled exception of type 'CrystalDecisions.CrystalReports.Engine.InvalidArg umentException' occurred in crystaldecisions.crystalreports.engine.dll

Additional information: Error in File C:\DOCUME~1\Owner\LOCALS~1\Temp\temp_9c205921-890b-4f0c-b621-a30f69d3da82.rpt:
Invalid table number.

I have set up the Employee_Current table as suggested.

I get the same error if I "change" the line of code to
      If myTable.Location.ToString() = "Employee" Then
---> myTable.Location = "Employee",
      End If

meaning that I'm not really changing the value.

If I comment the whole thing out, it works fine, and the report pulls back data from the Xtreme.Employee table.

What's causing this line of code to fail?









Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set the crystal report data source location gbilios Crystal Reports 13 September 22nd, 2010 05:16 PM
How to set font Roman 10cpi in Crystal Reports Rajesh.Prajapat C# 0 October 14th, 2008 06:14 AM
Crystal Reports Engine in Push Mode mike_abc Crystal Reports 0 April 17th, 2005 05:05 AM
login error - passing data set to crystal reports bsharris Crystal Reports 0 September 14th, 2004 03:38 PM
set location Sharonanna Crystal Reports 1 January 15th, 2004 06:53 AM





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