Results 1 to 4 of 4

Thread: How add Crystal Report Version 11 in VB6?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Question How add Crystal Report Version 11 in VB6?

    Dear All,

    How add Crystal Report Version 11 in VB6?

    Thanks & Regards

    Winanjaya

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How add Crystal Report Version 11 in VB6?

    Moved to reporting

  3. #3
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: How add Crystal Report Version 11 in VB6?

    First will need to add the following reference to your program:

    Crystal ActiveX Report Viewer Library 11.0

    Once you have done that you will have to add the CrystalActiveX Report Veiwer control to your project some where. Then you can use the following code to veiw the report in that control:
    VB Code:
    1. Private Sub RunReport()
    2. Dim crxApp As New CRAXDDRT.Application
    3. Dim crxReport As CRAXDDRT.Report
    4. Dim crxDatabaseTables As CRAXDDRT.DatabaseTables
    5. Dim crxDatabaseTable  As CRAXDDRT.DatabaseTable
    6. Dim crxDatabase As CRAXDDRT.Database
    7. Dim crxParm As CRAXDDRT.ParameterValues
    8. Dim crxSubReport As CRAXDDRT.Report
    9.  
    10. Dim ReportName As String
    11.  
    12. ReportName = "\\SERVER\Other\Reports\PL.rpt" 'Report Path
    13.  
    14. Set crxReport = crxApp.OpenReport(ReportName)
    15.  
    16. 'crxReport.PrintOut False, 1 'uncomment to printout the report
    17.  
    18. With crView 'Control Name
    19.     .ReportSource = crxReport
    20.     .ViewReport
    21.     While .IsBusy
    22.         DoEvents
    23.     Wend
    24.     .Zoom "75"
    25.     .Visible = True
    26. End With
    27.  
    28.  
    29. End Sub

  4. #4
    Junior Member
    Join Date
    Nov 2006
    Posts
    22

    Re: How add Crystal Report Version 11 in VB6?

    Do Not Ever Stop Study

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