how to use Vb6.0 & crystal report 10


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to use Vb6.0 & crystal report 10

  1. #1
    Join Date
    Jun 2006
    Posts
    1

    Unhappy how to use Vb6.0 & crystal report 10

    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

    Private Sub Command1_Click()
    CR1.ReportFileName = App.path & "\db\Report1.rpt"
    CR1.Connect = App.path & "\db\intercraft.mdb"
    CR1.SQLQuery = "select * from product_tab"
    CR1.Destination = crptToWindow
    CR1.PrintFileType = crptCrystal
    CR1.WindowShowPrintBtn = True
    CR1.WindowState = crptMaximized
    CR1.Action = 1

    End Sub

    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
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    If you don't get an answer here, you might try Crystal's tech support site: http://support.businessobjects.com/
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 2
    Last Post: 01-27-2007, 06:28 AM
  2. Working with Crystal Report Ver 10
    By AM003295 in forum VB Classic
    Replies: 4
    Last Post: 08-12-2005, 09:13 PM
  3. Replies: 3
    Last Post: 01-08-2003, 02:00 AM
  4. Replies: 1
    Last Post: 06-14-2002, 03:49 PM
  5. Replies: 2
    Last Post: 06-08-2002, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center