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