|
-
March 12th, 1999, 02:20 PM
#1
What is the best way to print a crystal report
I am trying to print a report designed in crystal reports to print the contents of a database. I use the code
Private Sub cmdPrint_Click()
crReport.Action = crRunReport
End Sub
given in a book, but I get an error. Where am I going wrong and how do I rectify it
-
April 1st, 1999, 10:06 PM
#2
Re: What is the best way to print a crystal report
You must specify the filename of the report file
(.rpt) you want to print.
With crReport
.Connect = CrystalReportConnectionString
.Destination = crptToPrinter
.ReportFileName = c:\reportname.rpt
.Action = 1
End With
P.S. Connect property is for user name, password, database name, server name, odbc source etc.
You must fill in the required info for the specific type of database you are connecting to.
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
|