*** code to open Crystal report
oCRApp = createobject("crystal.crpe.application")
*oRep = oCRApp.OpenReport("d:\leo\Mawb_laser.rpt")
oRep = oCRApp.OpenReport("D:\My Documents\Crystal Reports\Mawb_laser.rpt")
*** temp code to discard saved data (this must be included in order to discard any saved data with report
oRep.discardsaveddata
***
*** pass the recordset to the report
oDatabase = oRep.Database
oDatabaseTables = oDatabase.Tables
oDatabaseTable = oDatabaseTables.Item(1)
oDatabaseTable.SetPrivateData (3, oADOr)
*** code to preview the Crystal report
oRep.Preview
*wait
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.