|
-
June 7th, 2006, 05:44 AM
#1
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
-
June 7th, 2006, 11:44 PM
#2
Re: how to view report using vb6.0?
you have to open the report
cr1.openreport(path)
-
June 8th, 2006, 01:17 AM
#3
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.
-
July 1st, 2006, 06:33 AM
#4
Re: how to view report using vb6.0?
Madhivanan
Failing to plan is Planning to fail
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
|