hmmm.. well i have registered both .dll's.
this is my code:
CrystalReport.ConnectTo(CrystalApp.OpenReport('D:\LoadRevenue.rpt'));
CrystalViewer.ReportSource := CrystalReport.DefaultInterface;
CrystalViewer.ViewReport;
with just this code i get "Hardware Error" message.
with this line added:
CrystalApp.LogOnServer('vfpodbc.dll', odbc name', '', 'Password', '');
I get the error "file could not be opened because the library "vfpodbc" could not be found"
strange.. it is there! this is the visual foxpro odbc dll i am using to connect to the Database in question.. have no connectivity problems at design time.
I can run this viewer on my development machine (with cr8 on it-if i leave that first (last here) line out) but not on any machine that does not have crystal installed.
If i leave the logonserver code in the app, i get the same "cannot find dll" message!
surely i am doing something wrong......