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

Distributed App + Crystal Reports PDF Export 1

Status
Not open for further replies.

HomeAway

Programmer
Jun 6, 2003
36
AE
Hi Experts,

Hopefully a quick one this. I have a VB app that i distribute to a host of Operating systems. Part of the app is the ability to issue direct to PDF. When i try this it pops up the error "ActiveX Component unable to load object". It works fine on my development machine, but i had Crystal installed on it.

I have registered the following:
atl.dll (windows 98)
exportmodeller.dll
crtslv.dll

and copied these to files also to the system root..
crxf_pdf.dll
crxf_rtf.dll

With no luck.

 
Since you are on Win9x, you shoudl check the atl.dll properties and make sure that the title of the file is ATL..(ANSI) and not UNICODE.

UNICODE is not compatible with Win9x.

Also you may want to check out this tool to see if all of the PDF dll's are loaded when you have the export dialog open (just change your code a bit, or do this from preview)


The error you are receiving is not an export error either. I would look to the code, but this would tell me that the RDC library(ies) may not be registered properly on the machine. This error is blowing when the report object is being created/instantiated.



Cheers,

SurfingGecko
Home of Crystal Ease
 
I have followed your advice and used that little app (thanks for that), but still no luck. The version of ATL is ANSI. The codes works on any machine that has crystal installed. As far as i can see it calls the registered ocx file for crystal but i still get the error.

Have you any other suggestions. Am i wrong in thinking that it might be a missing component or dll register ? Else wh would it work on mine and not any other ?

Thank you.
 
Not to worry, found the problem. I hadnt included the craxdrt.dll in my distribution package. Once i had copied this across and registered it, it worked perfectly.

Thanks for steering me in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top