Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi Viewer

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
Can anyone give me any tips on this topic? I have created a viewer but seem to be missing some vital steps...

When run on the target machine a warning "class not registered" is given. I have registered the viewer.. what else do i need? :cool:
 
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
 
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......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top