CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Posts
    62

    Unhappy 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

  2. #2
    Join Date
    Jan 2005
    Posts
    224

    Re: how to view report using vb6.0?

    you have to open the report
    cr1.openreport(path)

  3. #3
    Join Date
    Oct 2005
    Posts
    62

    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.

  4. #4
    Join Date
    Jul 2004
    Location
    Chennai, India
    Posts
    1,064

    Re: how to view report using vb6.0?

    Check out examples at FAQ section of www.VBCity.com
    and http://support.businessobjects.com/
    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
  •  





Click Here to Expand Forum to Full Width

Featured