Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 27th, 2003, 12:52 PM
antonio.mairena antonio.mairena is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 antonio.mairena User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Crystal.CrystalReport

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 01:18 PM.

Reply With Quote
  #2  
Old September 9th, 2003, 11:01 PM
K_SAJESH K_SAJESH is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 9 K_SAJESH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old September 23rd, 2003, 01:01 PM
antonio.mairena antonio.mairena is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 antonio.mairena User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old September 23rd, 2003, 04:08 PM
K_SAJESH K_SAJESH is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 9 K_SAJESH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old October 15th, 2003, 08:25 AM
m_lazor m_lazor is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Luxembourg
Posts: 156 m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Crystal.CrystalReport


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek