Crystal Reports in VB - Error loading report, loads then terminates?
Posted on 2003-03-19
I have a crystal report. The report views fine inside of crystal. When loaded from VB it loads than immediatly terminates. Why would this happen? Following is the code I'm using to call the report.
invoicenumber = Key
SwedishDatabaseLocation = path to database
CR1.ParameterFields(0) = "invoicenumber;" & invoicenumber & ";True;"
CR1.DataFiles(0) = SwedishDatabaseLocation
CR1.ReportFileName = App.Path & "\creport1.rpt"