|
-
Dec 16th, 2006, 05:24 PM
#1
Thread Starter
PowerPoster
"Server has not yet been opened" Error
I'm getting this error message when trying to view a Crystal Report:
"Server has not yet been opened"
Any ideas anyone?
Thanks
-
Dec 16th, 2006, 05:53 PM
#2
Re: "Server has not yet been opened" Error
Yes, you may need to use the method .SetLogonInfo.
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 
-
Dec 16th, 2006, 07:59 PM
#3
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
Rob,
How do I do that? I'm trying to access this report from a VB app.
-
Dec 17th, 2006, 04:03 AM
#4
Re: "Server has not yet been opened" Error
Ok, are you creating a cr app object and report object? the .SetLogonInfo is a method of the report object.
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 
-
Dec 17th, 2006, 02:49 PM
#5
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
Rob,
I have the CR viewer control on my form. I created the report from the CR IDE where I attached an Access DB to it with all the fields. I looked at the events of the Report Viewer control and didn't see a .SetLoginInfo event. Am I looking in the wrong area?
-
Dec 17th, 2006, 03:18 PM
#6
Re: "Server has not yet been opened" Error
Yes, add a reference to CRAXDRT I believe it is and create an application and report objects. Then in the report object you will find it there. How are you connecting to your database? ADO?
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 
-
Dec 17th, 2006, 03:32 PM
#7
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
I'm just using Database Files, and not ODBC. Also, my machine is a standalone machine...I'm not on a server.
-
Dec 17th, 2006, 03:42 PM
#8
Re: "Server has not yet been opened" Error
Database files? ttx cr files you mean?
The method has nothing to do with a server, its just considered that since the database is a "server" to the report which is the client.
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 
-
Dec 17th, 2006, 03:52 PM
#9
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
From the Database menu in CR, I select "Add database to Report" which brings up the Database Explorer. I select "Database Files".
-
Dec 17th, 2006, 03:53 PM
#10
Re: "Server has not yet been opened" Error
What version of CR is this?
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 
-
Dec 17th, 2006, 05:20 PM
#11
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
-
Dec 17th, 2006, 06:14 PM
#12
Re: "Server has not yet been opened" Error
Change the connection in your report via CR to use an ADO connection. Its easier. I have some sample code on the forums already for creating the app object and report object and connecting to both. Make sure you are passing the correct dll driver for your type of connection.
Here is one - http://vbforums.com/showpost.php?p=2157372&postcount=4
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 
-
Dec 18th, 2006, 10:22 AM
#13
Thread Starter
PowerPoster
Re: "Server has not yet been opened" Error
Thanks Rob,
I'll give this a try!
-Blake
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
|