Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual 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 Dev Shed Forums Sponsor:
  #1  
Old October 21st, 2003, 02:40 PM
JeremyDP JeremyDP is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 JeremyDP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Crystal v.7 and VB v.6

Can't seem to view reports within my VB code.

At first, I tried:

With crReport
.ReportFileName = App.Path & "\Alert.rpt"
.UserName = "mickeym"
.Password = "minniem"
.ReportTitle = "Alert Report"
.Destination = crptToWindow
.PrintReport
End With

But I get error 20599, Cannot open sql server.

So then I tried:

Set CRApp = CreateObject("crystal.crpe.application")

Report.Database.SetDataSource RS

Call CRApp.LogOnServer("pdssql.dll", "Dev01", "Alert", "mickeym", "minniem")

CRViewer1.ReportSource = Report
CRViewer1.ViewReport

But I get error -2147192184, Server has not yet been opened.

Any ideas?

Thanks,
JeremyDP

Reply With Quote
  #2  
Old October 21st, 2003, 03:47 PM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
I am sorry I can't help you with your problem !

but I hope YOU can help me. I am working on .net and I need to remake and make reports with Crystal Reports, but I never used that program before.

Do you have any help for me, any tutorials or anything like that, that could help me may be ?

thank you !

BTW : I tryed to pm or email you, but you don't authorise it. that's why I write here.
__________________

Reply With Quote
  #3  
Old November 4th, 2003, 12:27 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
Hi
First of all try calling to "Report.Database.SetDataSource" with a parameter like so: Report.Database.SetDataSource RS,3 (not much documentation on that one but that is way to do it...).
If that doesn't solve the "Server has not yet been opened" error, it could be due to a mismatch in the fields the report is based on and the fields passed in the recordset so check it carefully.

Good Luck

Reply With Quote
  #4  
Old November 4th, 2003, 08:40 AM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
you can always check that book.

It's free and if you register for free you will have access to even more information.

it's more basic stuff but their is still some advanced information that might help you.

http://www.crystalreportsbook.com/Chapters.asp

Reply With Quote
  #6  
Old December 13th, 2003, 05:11 PM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
Hi,

I am searching for a website. I have a work to do and there was plenty of information on that website.

it was called "free crystal report book" I think it was www.freecrystalreportbook.com but that's not working any more.
and I can't find it anymore

any body know ? it's very important for me.

Reply With Quote
  #7  
Old December 14th, 2003, 06:58 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I can't access this site:www.freecrystalreportbook.com..It maybe doesn't exist!..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Crystal v.7 and VB v.6


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT