I think for our deployed applications to work (that included use of the 'CRViewer' component) we needed to register (using regsvr32) both 'crviewer.DLL' and 'craxdrt.DLL'.
Bear in mind also that if you're accessing databases you will also need to include the appropriate database access dll's. I work against a SQL Server database and for me these include 'p2sodbc.dll' and 'p2ssql.dll'
Hope this helps
Steve
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.