PDA

Click to See Complete Forum and Search --> : CR4.6, VB6 over network


PeterBorroloola
Apr 9th, 2006, 09:48 AM
This is probably a basic question, but I've not worked with networks before. I've designed a db front-end with VB6 (using DAO), CR4.6 and an Access '97 db.

The program calls several reports, using the CrystalReport component. The exe, the db and the report files are all in the same directory, on the server. In CR, I have set the db location to 'Same As Report'. Similarly, I have not specified a path to the reports in the code - just the name of the report file.

This works fine when working on the server, but there is also a laptop networked to the main machine (yes, this is a small network - the server runs Win2k, the laptop runs XP). I registered the dependencies on the laptop, so the exe, still resident on the server and accessed over the network, runs fine. However, I can't call the reports. As with all problems with CR4.6, there is just a deafening silence when I try to bring up a report - no error message :mad:

Any ideas? tia, Peter

Hack
Apr 10th, 2006, 06:39 AM
The only thing that I can think of to try is to get laptop for yourself, load VB on it, load the source of your program on it, and step through the code to see what is happening when you call the reports from it.

PeterBorroloola
Apr 11th, 2006, 02:36 AM
hack, would it make any difference to change the path to $AppPath/reportname.rpt (or whatever the syntax is) in the code, or the path to the db in the report?

It shouldn't, because as I said the db, exe and reports are all in the same directory.

tks peter