how to view report using vb6.0?
hi
i have designed report using crystal report 10. i am using access as database.
i have selected crystal report & crystal activex reportviewer component . i ve placed both on form. i ve written following code
CR1 is Crystal report component object
CR1.DataFiles(0) = App.Path & "db\intercraft.mdb"
CR1.ReportFileName = App.Path & "\db\report1.rpt"
CR1.SelectionFormula = "select * from product_tab"
CR1.WindowShowPrintBtn = True
CR1.WindowState = crptMaximized
CR1.Action = 1
is this code is correct for viewing report using vb6.0. Above code is giving me error " unable to load report". is this crystal activex reportviewer component is needed.
please tell me how to do this
Re: how to view report using vb6.0?
you have to open the report
cr1.openreport(path)
Re: how to view report using vb6.0?
thanx tis707 for helping me.but it is giving me error object doesn't support this property or method. also it si not showing me this property/method in list when i give . after cr1. please give me solution.
Re: how to view report using vb6.0?