|
-
Feb 8th, 2005, 01:39 AM
#1
Thread Starter
New Member
Export crystal report + oracle database in VB
I create one standard exe file.
Then I add in a crystal report file with
oracle ODBC connection named as CrystalReport1
Together I add a crystal report viewer.
When I run the program, I got this error
"Server has not yet been opened"
This is the command to export the report out to pdf.
Private Sub Command1_Click()
Dim Report As New CrystalReport1
filedb = App.Path
With Report
.ExportOptions.ODBCDataSourceName = "DSNname"
.ExportOptions.ODBCDataSourceUserID = "Username"
.ExportOptions.ODBCDataSourcePassword = "Password"
.ExportOptions.FormatType = crEFTPortableDocFormat
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.DiskFileName = filedb & "VehicleExp.pdf"
.Export False
End With
End Sub
---------------------------------------
anybody please help me to solve this problem..
thanks
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
|