|
-
Apr 22nd, 2008, 04:26 AM
#1
Thread Starter
Addicted Member
Not showing the crystal report
Hi,
my vb coding are as below:
Code:
CrystalReport1.WindowTitle = "Testing Report"
CrystalReport1.ReportTitle = "Testing Report"
CrystalReport1.ReportFileName = App.Path & "\testing.rpt"
CrystalReport1.Connect "DSN = testing; UID = sa; PWD = sa"
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.DiscardSavedData = True
CrystalReport1.Action = 1
I'm running my vb source code at Windows Vista, VB6 SP6, CR 8, DSN set to "testing" & tested successfully ...
After the code line "CrystalReport1.Action = 1", it shows the CR for a while, but no data, then it jump out and give me a "Cannot Open Sql Server" msgbox
any idea on how to solve this???
-
Apr 23rd, 2008, 12:29 PM
#2
Re: Not showing the crystal report
Do you have the proper connection to the server set up?
If you are getting this error, what is actually testing successfully?
-
Apr 23rd, 2008, 10:19 PM
#3
Thread Starter
Addicted Member
Re: Not showing the crystal report
 Originally Posted by Hack
Do you have the proper connection to the server set up?
If you are getting this error, what is actually testing successfully?
hmm... what do you mean by proper connection to the server set up?
May I know what is the difference using CrystalReport.Action = 1 and CrystalReport.PrintReport?
-
Apr 26th, 2008, 06:53 AM
#4
Re: Not showing the crystal report
I presume your SQL Server is setup on a network file server. You need access to both the file server as well as the database.
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
|