|
-
Feb 6th, 2008, 01:10 PM
#1
Thread Starter
Junior Member
CRPE32.DLL can not load and ActiveX component can't create object error.
Hi Everyone,
Here's my problem:
I have created a Visual Basic 6 program for one of my clients. I created a setup.exe using the package and deployment wizard. When I copied and executed the setup.exe file and installed my program on the clients machine everything works ok except for when I try to open up a link which is suppose to call one of the Crystal reports at the following line:
Dim objStatus
Set objStatus = CreateObject("PrintRep.clsPrintRep")
I get the Runtime error 429 ActiveX component can't create object.
So I figured ok maybe it has to do with some dependency of the Crystl32.ocx and I started to check all of its dependencies. I ran into crpe32.dll and noticed that the version on my developing machine was higher then the version on the clients machine. Without thinking twice I deleted the crpe32.dll on the clients machine and copied over the crpe32.dll from the developers machine in hopes of registering it through regsvr32.... And all hell broke loose I can not register the crpe32.dll no matter what and I dont have the Crystal Reports 10 CD to repair it...
I'm all out of options and freaking out a little bit.
Any suggestions, insight or help would be greatly appreaciated.
Thank you.
Regards,
Irena.
-
Feb 6th, 2008, 01:59 PM
#2
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
so no one really knows anything about this i take it.
thanks.
-
Feb 6th, 2008, 02:20 PM
#3
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
crpe32.DLL is not an ActiveX DLL, there is no reason to register it. Check the crpe32.dep file for its dependancies.
-
Feb 6th, 2008, 02:26 PM
#4
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
OH ok, thanks alot the reason I thought that I had to register it is because I can't register my Crystl32.ocx .
I'll check the dependencies for the crpe32.dep file now. Thanks for the help.
-
Feb 6th, 2008, 02:27 PM
#5
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
You are missing dependancy files for CR.
What version of crystal?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2008, 02:36 PM
#6
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Crystal Reports version 10.
-
Feb 6th, 2008, 02:44 PM
#7
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
I have checked the following dependency files and they are all in C:\Windows\system32\:
ADVAPI32.DLL
COMCTL32.DLL
COMDLG32.DLL
CRPE32.DLL
GDI32.DLL
IMPLODE.DLL
MFC32.DLL
MSVCRT.DLL
MSVCRT20.DLL
OLE32.DLL
OLEAUT32.DLL
OLEDLG.DLL
OLEPRO32.DLL
USER32.DLL
VERSION.DLL
... what am i missing?
Thanks.
-
Feb 6th, 2008, 02:46 PM
#8
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Doesnt 10 use Merge Modles?
With previous versions the dependancies were dependant upon your code and references.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2008, 02:56 PM
#9
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Yes I think it does use merge modules... the vb6 project doesnt reference any crystal report dll's or ocx's though. And I know this project has been installed on another clients computer so it cant be because I have no references in the vb6 project...
This is a big problem now...
-
Feb 6th, 2008, 03:01 PM
#10
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
But if this is a new setup project then you need to include or distribute the merge modules too. The merge modules include the dependancy files.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2008, 03:03 PM
#11
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Oh ok, how do i find where these merge modules are located???
Thanks.
-
Feb 6th, 2008, 03:39 PM
#12
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
could it be something else other then the Crystal Report dlls or ocxs????
-
Feb 6th, 2008, 03:44 PM
#13
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Depends on what code you are runing but if you are not distributing all the dependancy files that are needed for your code then its possible its a missing CR dependancy file(s).
Do you have any error handling in your app?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 6th, 2008, 04:06 PM
#14
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
I think i've discovered that the activex error has nothing to do with crystal reports, i put in the following code:
Set objSplash = CreateObject("Splash.clsSplash")
It seems as though I cant create any activex objects period? 
Please help.
Thanks.
-
Feb 6th, 2008, 04:07 PM
#15
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Yes I do have error handling and when it goes into the ErrorHandler it gives me the ActiveX component cant create object modErrorHandler module..
And I think it actually gives me an error inside the errorhandler at the following line:
Set objError = CreateObject("ErrorHandler.clsErrorHandler")
Thanks.
-
Feb 6th, 2008, 05:26 PM
#16
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
 Originally Posted by evassilia
Set objSplash = CreateObject("Splash.clsSplash")
It seems as though I cant create any activex objects period? 
Have you actually installed, and thus registered, the object "Splash" (which I presume is a DLL)?
-
Feb 6th, 2008, 05:41 PM
#17
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
It's ALWAYS the simplest answer that elude everyone... You have not deployed all the ocx/dll/exe files that you need...
PDW can't help you if and will not create a good setup if there is no .dep file for the file systems you deploy... PERIOD!!!
-
Feb 7th, 2008, 09:41 AM
#18
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
In my vb project I dont have any Crystal Reports Reference, these are my references as follows:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
Microsoft Scripting Runtime
stsTools
Accpac Session Manager 1.0
Microsoft ActiveX Data Objects 2.8 Library
Microsoft Excel 12.0 Object Library
Accpac COM API Object 1.0
Components:
Microsoft Masked Edit Control 6.0 (SP3)
Microsoft Tabbed Dialog Control 6.0 (SP6)
Microsoft Windows Common Controls 6.0 (SP6)
Microsoft Windows Common Controls-2 6.0 (SP6)
vbAccelerator Image List Control (VB6 version)
vbAccelerator VB6 Explorer Bar Control
I dont have any specific reference for the Crystal reports or the Status screen...
Could it be the Microsoft ActiveX Data Objects 2.8 Library is out of date on the clients machine?
Thanks for the help.
-
Feb 7th, 2008, 09:46 AM
#19
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
I'll try asking this again... Are you installing the "Splash" and "ErrorHandler" objects? (which I guess are both DLL's)
You will get the errors unless they are installed.
-
Feb 7th, 2008, 09:53 AM
#20
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Hi Everyone,
On my developers machine inside C:\Program Files\Common Files\Business Objects\
I have two folders one is 3.0 and another one is 2.7.
It seems as though 2.7 has all the Crystal Report objects and many more.
On my clients machine I dont have the 2.7 folder... might anyone know how I can get my hands on it?
Thanks.
-
Feb 7th, 2008, 09:54 AM
#21
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Does 2.7 reference Microsoft ActiveX Data Objects 2.8 Library???
And no I dont have those objects because I have no idea what the DLL name is for any of those objects, I didnt write the program I just modified it.
Thanks.
Regards,
Irena
-
Feb 7th, 2008, 10:08 AM
#22
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
sorry if im all over the place that's because I'm lost when it comes to DLL's.
-
Feb 7th, 2008, 10:17 AM
#23
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
msado15.dll is the activex data object 2.8 which is the same version on the clients computer... so it can't be that.
-
Feb 7th, 2008, 11:03 AM
#24
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
 Originally Posted by randem
It's ALWAYS the simplest answer that elude everyone... You have not deployed all the ocx/dll/exe files that you need...
PDW can't help you if and will not create a good setup if there is no .dep file for the file systems you deploy... PERIOD!!!
No, everyone in this thread has stated hes missing dependancy files. Perhaps reading the posts is what is eluding you?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 7th, 2008, 11:09 AM
#25
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
It seemsthat you havent really determined which line of code is the problem so its hard to say what component(s) you are missing.
You have stated that the error may be with at least 3 different calls and some are CR related and some are not. You need to determine all dependancies based upon your references and late bound code. Without seeing hte entire app we can not just tell you which is missing.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 7th, 2008, 11:24 AM
#26
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
I have eliminated the runtime error 429 by finding the exact DLL's which were needed for the program (they are custom dll's).
However now I get the Runtime error 91...
still confused..
-
Feb 7th, 2008, 11:30 AM
#27
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
This is my code, please note the code works because this program has been installed on another clients computer without any issues so it has nothing do with the code.
Sub LaunchReport(vstrReportName As String, vintParamTotal As Integer)
'{{EA
On Error GoTo ErrorHandler
'}}EA
Dim str As String
Dim strPath As String
Dim rs As New ADODB.Recordset
Dim cnn As New ADODB.Connection
Dim objPrint As Object
Dim strValues(1 To 2) As Variant
Dim objStatus As Object
Set objStatus = CreateObject("Status.clsStatus")
Call objStatus.LoadStatusScreen(pstrProjectTitle, "Rendering Report...")
DoEvents
strValues(1) = 2005
strPath = modMain.strVerifyReportPath(vstrReportName)
MsgBox strPath
If strPath = pcstrBlank Then GoTo ErrorHandler
Set objPrint = CreateObject("PrintRep.clsPrintRep")
Call objPrint.PrintReport(2, strPath, ptypRepSettings.pstrDatabase_DSN, ptypRepSettings.pstrDatabase_UserName, ptypRepSettings.pstrDatabase_Password, pcbolFoundWithinReportIniFile_False, strValues, vintParamTotal, False, 2)
Set objPrint = Nothing
'{{EA
ErrorHandler_Exit:
Call objStatus.UnLoadStatusScreen
Screen.MousePointer = 0
Exit Sub
ErrorHandler:
Call modErrorHandler.ErrorTrap(Err.Number, Err.Description, Err.Source, "LaunchReport", "modMain")
GoTo ErrorHandler_Exit
'}}EA
End Sub
-
Feb 7th, 2008, 11:48 AM
#28
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Runtime error 91 is caused at the following lines:
Set objStatus = CreateObject("Status.clsStatus")
Set objPrint = CreateObject("PrintRep.clsPrintRep")
-
Feb 7th, 2008, 11:51 AM
#29
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
This will help you determine the exact line of your error.
Code:
Sub LaunchReport(vstrReportName As String, vintParamTotal As Integer)
'{{EA
On Error GoTo ErrorHandler
'}}EA
Dim str As String
Dim strPath As String
Dim rs As New ADODB.Recordset
Dim cnn As New ADODB.Connection
Dim objPrint As Object
Dim strValues(1 To 2) As Variant
Dim objStatus As Object
100 Set objStatus = CreateObject("Status.clsStatus")
110 Call objStatus.LoadStatusScreen(pstrProjectTitle, "Rendering Report...")
DoEvents
strValues(1) = 2005
120 strPath = modMain.strVerifyReportPath(vstrReportName)
MsgBox strPath
130 If strPath = pcstrBlank Then GoTo ErrorHandler
140 Set objPrint = CreateObject("PrintRep.clsPrintRep")
150 Call objPrint.PrintReport(2, strPath, ptypRepSettings.pstrDatabase_DSN, ptypRepSettings.pstrDatabase_UserName, ptypRepSettings.pstrDatabase_Password, pcbolFoundWithinReportIniFile_False, strValues, vintParamTotal, False, 2)
Set objPrint = Nothing
'{{EA
ErrorHandler_Exit:
Call objStatus.UnLoadStatusScreen
Screen.MousePointer = 0
Exit Sub
ErrorHandler:
MsgBox "Error Line Number: " & Erl
Call modErrorHandler.ErrorTrap(Err.Number, Err.Description, Err.Source, "LaunchReport", "modMain")
GoTo ErrorHandler_Exit
'}}EA
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 7th, 2008, 12:00 PM
#30
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
I did determine the error at the exact lines as I've mensioned in the above post:
Set objStatus = CreateObject("Status.clsStatus")
Set objPrint = CreateObject("PrintRep.clsPrintRep")
Not the number no, I'm not sure how to display lines in VB6.
Regards,
Irena
-
Feb 7th, 2008, 12:02 PM
#31
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
Um, but I just showed you how to determine the line. Look at the code example 
So you are saying the error 91 is at line 100?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 7th, 2008, 12:13 PM
#32
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
oh lol yes it's at 100
-
Feb 7th, 2008, 04:34 PM
#33
Thread Starter
Junior Member
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
well boys thanks for the help but I've figured it out. I remembered that sometimes when you register your dll's and ocx's through Reg.bat some of the dll's loose their license and to fix that problem all you have to do is simply register them manually through start-run... I love it when it's such small errors that cause you so much time to figure out.. lol!
-
Feb 7th, 2008, 05:43 PM
#34
Re: CRPE32.DLL can not load and ActiveX component can't create object error.
 Originally Posted by RobDog888
No, everyone in this thread has stated hes missing dependancy files. Perhaps reading the posts is what is eluding you?
Perhaps not responding to post that are not referring to you would be a better help to the OP...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|