|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hello,
I am trying to make an exe on my pc of code that works and that is already running on production box. However, when i run it in design mode i get errors. This is the code that alredy works on the pc that was created: ================================================== =========== 1 Private rptCrystal As Object 2 Set rptCrystal = CreateObject("Crystal.CrystalReport") 3 rptCrystal.WindowParentHandle = Me.hwnd 4 rptCrystal.DiscardSavedData = False 5 rptCrystal.ReportFileName = strReportName 6 rptCrystal.Connect = "DSN=" & Trim$(strConnect) & ";UID=reporter;PWD=goldenhorseshoe;DSQ=" 7 nReport = rptCrystal.GetNSubreports But Lines 4 & 7 kick the following error: ========================================= Run-Time error '438': Object doesn't support this property or method i would appreciate any help, thanks you in advance antonio. Last edited by antonio.mairena : August 27th, 2003 at 12:18 PM. |
|
#2
|
|||
|
|||
|
It is quit possible that the pc in which the software was developed had Crystal Report installed. and the current PC does not have the Crystal report installed.
In this case you can do two thing 1] Get the Crystall Report installed on your PC 2] Create the Setup using packaging wizard and install the software in the current PC. |
|
#3
|
|||
|
|||
|
Thank you.
Ok, i installed crystal report 8.5, but now i get an error in "Set rptCrystal = CreateObject("Crystal.CrystalReport")" What do i have to do now? What component or reference i have do add to my project? |
|
#4
|
|||
|
|||
|
Hello,
I too had the same problem. Actually Perviously I was using Crystal Report 6, Then I intalled Crystall Report 8.5 on the same PC. Then while developing I added Crystal Report 6 Engine to the reference. but I designed the Crystal Report in Ver. 8.5. This system had both the Crystal Report's. My Project worked fine. But the problem arised when I tried installing it to new PC. I even tried Installing Crystal Report 6 first and then Crystal Report 8.5. But that dint help me. So I made Installable Project on the PC where it was running fine. While building the Setup I added the Crystal Report Component also. Then I installed the setup of the project on a new PC. This solved the project. What I concluded is the I was using Ver.6 Engine and the Design waas done in 8.5 was the culprit. I could not fine an Engine in 8.5. So when ever my HDD is formated I have to run setup of that project after everything is installed (even Crystal report 6 & 8.5.), Then the error is eleminated. Presently I am using this temperory Technic, but ofcourse this isnt the right technic. Try doing this if it helps you. |
|
#5
|
|||
|
|||
|
Well, in the first place it should be enough to register crpe32.dll. The file, of course, comes from a CR installation. And also, when you want to use an object it has to be registered, i.e. it has to be known, on the executing machine.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Crystal.CrystalReport |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|