Run Time Error 20728

I am trying to run a crystal reports 8 report from a VB6 application but get a "Run Time Error '20728' ". It is definitely not a problem with the code but more to do with the environment. Maybe, I installed something which messed the crystl32.ocx. The 'depends' proggy does not highlight any issues and the running the report from CR works fine. Any ideas?
Many thanks,


jaybeegeeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Please post the code.

What edition of CR8?

What O/S?

mlmcc
jaybeegeeAuthor Commented:
Here are the version numbers:

Visual Basic v6
Crystal Report v8.0.1.0.
(08-11-98  04:00p --- 993,996 --- Crystl32.ocx)

The code is pretty simplistic (here is a cut down version just for the example):

Private Sub Command1_Click()
  crReport.ReportFileName = App.Path & "\propertydata.rpt"
  crReport.Action = 1
End Sub

tks
frodomanCommented:
Does this happen for every report or just a specific one?

You may need to reinstall Crystal - the only reference I've seen to this error relates to incompatible control versions.

frodoman
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

mlmccCommented:
What O/S?  If it is XP you may have an incompatibility problem.  CR8 isn't supported or tested on XP.

What edition?  WIth CR8 you need the developer edition to use VB.

I checked the CR site and 20728 isn't listed.

Is this on a machine with CR installed?

mlmcc
frodomanCommented:
The reference I found was on a vb site.  mlmcc makes a good point about XP - that could also explain the incompatibility.

frodoman
jaybeegeeAuthor Commented:
I am actually running on Windows2000 Professional and yes I do have the Crystal Reports installed.

Same problem happens on all reports even on the ones that worked previously!

One thing I noticed with Crystal Reports running is that if I go into Help -> About -> More Info - it shows all the DLL's. crpe does not seem to be in the list but is one of the dependencies.

I will try and uninstall and reinstall CR now!

tks
James
jaybeegeeAuthor Commented:

Reinstalling CR (complete) had no effect. I also manually re-registered the crystl32.ocx (which also succeeded) but no joy running a report from vb :(

Any ideas?

tks
James

frodomanCommented:
Sorry James, I don't have any other ideas...

frodoman
jaybeegeeAuthor Commented:
do you know a source for a new version (if any) or stable crystl32.ocx?

tks
mlmccCommented:
Crystal has dropped the OCX so I know of no new version or source.  I suspect the OCX may not be Win2K compatible.

Have you considered using the RDC?
This link is has an explanation of how to convert to the RDC from the OCX
http://support.businessobjects.com/communityCS/TechnicalPapers/scr8-ocxtordc.pdf.asp

mlmcc
devin_batesCommented:
I had this same problem, and noticed that the error message I was getting was just the letter "E"...not very helpful...

I finally tracked it down to crpe32.dll.  The version on my problem computer was different (newer and much larger) than the version on my working computers.  Once I replaced the dll, the problem was resolved.  Give this a try.

-Casey

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
Here is a link to one of the updates to CR8

http://support.businessobjects.com/communityCS/FilesAndUpdates/cr8_819.zip.asp

I have th elink to the last CR8 update at work.  I'll attach that to see if it might help

mlmcc
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.