Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > BOOK: Professional Crystal Reports for VS.NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 30th, 2004, 04:08 PM
Registered User
 
Join Date: Jan 2004
Location: Abingdon, MD, USA.
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?




Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:57 PM.


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