OK. I think this is pretty easy to resolve.
You need to provide a fully qualified path name to the free table. Crystal doesn't know anything about the FoxPro path. Look at the Crystal Reports article on my web site to see how to do this.
>I'm using a VFP7 free table (.dbf) and ODBC to access this file. I'm able to programatically open the Crystal Report and to change object properties and use some methods (e.g. go_Crystal.crreport.DiscardSavedData()) but when I try to use go_crystal.crreport.ReadRecords() I get OLE IDispatch exception code 0 from Crystal Reports ActiveX Designer: Server has not yet been opened. Whenever I run a method that actually draws data to my report (e.g. print, export, read records) the report chokes.
>
>The OpenReport Method seems to work just fine as does the SetDataSource Method. It seems that this application cannot find the .dbf file even though it is in the same folder as the .EXE created in VFP7.
>
>I know that I'm missing something very obvious here but I can't figure out what it is...
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer