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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error 20997 using Crystal Control in VB6 1

Status
Not open for further replies.

darkman0101

Technical User
Oct 10, 2000
51
NZ
This is probably a long shot but, has anyone encounted sparodic errors with the code 20997 when calling CrystalReport.action = 1 in vb6?

I have checked that the path to the report is correct an accessable and have tried using mapped drives and UNC paths, all to no avail. this error still occurs from time to time.

I am using crystl32.ocx (file version 6.1.0.609) in VB6 sp3 on Win nt 4.0 sp 6

Thanks in advance.
 
I ran into this error just once; the same report printed OK moments later. Seagate's KB listed 5 possible reasons:

1. OLE2 files not being registered
2. Bad SelectionFormula (control characters in string).
3. Invalid ReportFileName value (invalid path).
4. 16-bit CRPE connected to a 32-bit ODBC data source
5. Report with imbedded chart but SSCSDK32.DLL not distributed

None of these seemed to apply in my case but maybe they'll trigger a lightbulb for you.

 
We've encounted the same problem and we are still trying to find a solution. Have you found something?
 
We've encounted the same problem and we are still trying to find a solution. Have you found something?
 
I encountered this error 20997 today, has anybody found a solution ?

I am using a similiar configuration like darkman0101.

I get this error on one record, but the report prints fine from within CR. All other records print fine within the VB application as intended.

Any ideas would be greatly appreciated.

Moben.
 
Hi Friends

I got the same Problem,but it seems working few times but not working at the first time, May be problem of loading of crystal report.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top