Hello ,
I am facing a problem in printing a crystal report.
Actually im using this this crystal report for the first time.Could you please help me regarding this matter.?
im attaching a sample code to the program.
I dont know the method im using is correct or not ?
i have a database called real.mdb. it is connected through a DSN called real. the database is password protected.
user: admin
password: real
im able to view the report from crystal report. But not able to view it through the program.
In the program first report Does not use any database. So its opening through the program.Second Does not.
Please guide me in this matter
yours truly
Jumer
my email id is jumerk@gmail.com
My code
Private Sub Command1_Click()
CrystalReport1.DataFiles(0) = App.Path & "\Real.mdb"
CrystalReport1.ReportFileName = App.Path & "\report1.rpt"
CrystalReport1.UserName = "admin"
CrystalReport1.Password = "real"
CrystalReport1.Action = 1
End Sub
Private Sub Command2_Click()
CrystalReport1.DataFiles(0) = App.Path & "\Real.mdb"
CrystalReport1.ReportFileName = App.Path & "\Customer.rpt"
CrystalReport1.UserName = "admin"
CrystalReport1.Password = "real"
CrystalReport1.Action = 2
End Sub
Enter your message below
Sign in or Join us (it's free).