elbimbo
Jun 18th, 2003, 03:02 AM
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...
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...