|
-
Jun 18th, 2003, 03:02 AM
#1
Thread Starter
Addicted Member
How to use CrystalReport object?
Hello there,
I wanted to created a CrystalReport object during runtime.
Just like creating an ADO object.
it looks like this but this one doesnt run.
dim rptObj as CrystalReport
With rptObj
.Connect = "DSN=TEST;UID=sa;PWD=test;DSQ=Employee
.ReportFileName = App.Path & "\rptTST1.rpt"
.Formulas(0) = "ReportTitle="Test Report"
.SQLQuery = "SELECT * FROM Employee"
.PrintReport
End With
it generates an error variable is not set
pls help. thanks...
-
Jun 18th, 2003, 04:28 AM
#2
Lively Member
Try this....
Add the following code...
set rptObj = New CrystalReport
Do, or do not. There is no 'try'.
-
Jun 18th, 2003, 04:43 AM
#3
Thread Starter
Addicted Member
error says "invalid use of NEW keyword"
-
Jun 20th, 2003, 04:23 AM
#4
Lively Member
What version of....
What version of crystal reports are u using and what references do you use in your project ....?
Do, or do not. There is no 'try'.
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
|