Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

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 Dev Shed Forums Sponsor:
  #1  
Old May 14th, 2003, 04:51 AM
shafan's Avatar
shafan shafan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 123 shafan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 51 sec
Reputation Power: 7
'server has not yet been opened' Crystal Reports error [RESOLVED]

Hi,
I'm trying to open a form with the report viewer control on it to view a report.
The report data is set using the SetDataSource method:
rptCourses.Database.SetDataSource rst, 3

The report's viewing form Load event is:
CRViewer1.ReportSource = rptCourses
CRViewer1.ViewReport

I get a 'server has not yet been opened' error when trying to execute the 'CRViewer1.ViewReport' statement.

I have another report in the same project (not using SetDataSource) that runs just fine, and a report on another project that does use SetDataSource that uses more or less the same code and runs fine.

I'm using VB6 and CR 8.5 on winXP machine

Any ideas? Help would be appreciated.
thanx

Last edited by shafan : July 10th, 2003 at 03:15 AM.

Reply With Quote
  #2  
Old July 10th, 2003, 03:09 AM
satishatakare satishatakare is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Aurangabad, MS, India
Posts: 1 satishatakare User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to satishatakare
Hi,

I am also having same problem, I am using ODBC to connect to SQL Server Database, In same application my one report get open fine, but two reports give this error.

Please help me.


Reply With Quote
  #3  
Old July 10th, 2003, 03:16 AM
shafan's Avatar
shafan shafan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 123 shafan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 51 sec
Reputation Power: 7
make sure the recordset you pass to the report contains exactly the same fields as the one the report was based upon (that was my problem - I missed a field)

Reply With Quote
  #4  
Old October 1st, 2003, 05:09 AM
Steveppage1977 Steveppage1977 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 Steveppage1977 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have found that the only way to get round this problem with secured databases is to specifically set the logon info for the table
e.g.

Report.database.tables(1).setlogoninfo "", "", "UserName", "Password"

For more info see
URL

Reply With Quote
  #5  
Old August 27th, 2007, 08:42 AM
baronming baronming is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 3 baronming User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
I Have the same problem with my report :
using Crystal 8.5
Here's my answer for this problem :

In VB6 I make a program that call my report using an ODBC.

But on the computer where I install my program, the ODBC - System DSN was NOT install.

So I create a System DSN on the user machine, and everything goes fine after.

Reply With Quote
  #6  
Old February 20th, 2008, 01:08 AM
abhijeet471496 abhijeet471496 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 abhijeet471496 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 17 sec
Reputation Power: 0
Angry Crystal Report 8.5

Hi,
I'm trying to open a form with the report viewer control on it to view a report.

CRViewer1.ViewReport

When I am opening the report file from VB its working
nicely, the data is coming in the report but in the report window when I try to refresh it,
I get a 'server has not yet been opened' error.

I have tried to refresh the report file form its own crystal report file .rpt, there its working. The is getting refreshed but the problem comes with refreshing at the runtime in VB6.


I'm using VB6 and CR 8.5 on winXP machine

Any ideas? Help would be appreciated.
thanx

Waiting for reply.........
Abhijeet

Reply With Quote
  #7  
Old February 20th, 2008, 08:12 AM
baronming baronming is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 3 baronming User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
Try this

Quote:
Originally Posted by abhijeet471496
Hi,
I'm trying to open a form with the report viewer control on it to view a report.

CRViewer1.ViewReport

When I am opening the report file from VB its working
nicely, the data is coming in the report but in the report window when I try to refresh it,
I get a 'server has not yet been opened' error.

I have tried to refresh the report file form its own crystal report file .rpt, there its working. The is getting refreshed but the problem comes with refreshing at the runtime in VB6.


I'm using VB6 and CR 8.5 on winXP machine

Any ideas? Help would be appreciated.
thanx

Waiting for reply.........
Abhijeet


************ SOLUTION *************
When I read your problem, I think this :
It seems that your report was create and save with this option :
SAVE DATA WITH REPORT
Try to save your report without saving Data with report.
Now you will have only the error : 'server has not yet been opened' (I SUPPOSED).

If you have create your report with a DSN connection, try to create this connection on the computer you try to open the report.

Reply With Quote
  #8  
Old February 21st, 2008, 12:20 AM
abhijeet471496 abhijeet471496 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 abhijeet471496 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 17 sec
Reputation Power: 0
Crystal Report 8.5

Quote:
Originally Posted by baronming
************ SOLUTION *************
When I read your problem, I think this :
It seems that your report was create and save with this option :
SAVE DATA WITH REPORT
Try to save your report without saving Data with report.
Now you will have only the error : 'server has not yet been opened' (I SUPPOSED).

If you have create your report with a DSN connection, try to create this connection on the computer you try to open the report.


Hello
Will you please explain that:
What is this option:
'SAVE DATA WITH REPORT'

I have used ODBC connection to connect the report, not DSN connection.


------------
Abhijeet

Reply With Quote
  #9  
Old February 21st, 2008, 07:40 AM
baronming baronming is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 3 baronming User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 31 sec
Reputation Power: 0
[QUOTE=abhijeet471496]Hello
Will you please explain that:
What is this option:
'SAVE DATA WITH REPORT'

I have used ODBC connection to connect the report, not DSN connection.


The Option "Save Data with Report" is an option in Crystal Report.
When you create your report with Crystal Report when you click FILE in the m,enu taskbar, you see a sub menu with : new , open, close, etc... you will see Save as... And under this you will see : 'SAVE DATA WITH REPORT' , unchecked this option when you save your report.

Reply With Quote
  #10  
Old February 9th, 2009, 10:15 AM
Saima Shirani Saima Shirani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 1 Saima Shirani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 9 sec
Reputation Power: 0
CRAXDRT:2147192184 Server has not yet been opened

Hello...
I've the same problem.I'm using Oracle OLE DB database and asp classic.. my report's charts graphs are working quite fine.. but whenever i tried to refresh this report in web browser or asp page.. found this error...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > 'server has not yet been opened' Crystal Reports error


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 2 hosted by Hostway
Stay green...Green IT