Results 1 to 3 of 3

Thread: Crystal report 9 vs visual basic

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    13

    Crystal report 9 vs visual basic

    hi guys, i have tried to use vb code to interacting with the CRViewer 9 with the code statement

    Code:
    Dim Appl As New CRAXDRT.Application
    Dim Report As New CRAXDRT.Report
    Private Sub Form_Load()
        Set Report = Appl.OpenReport(ReportFile)
        CRViewer91.ReportSource = Report
        CRViewer91.ViewReport
    End Sub
    Private Sub Form_Resize()
        With CRViewer91
            .Top = 0
            .Left = 0
            .Width = Me.ScaleWidth
            .Height = Me.ScaleHeight
        End With
    End Sub
    however, the dim part occur error , and display error about the ARAXDRT is not defined. any other solution ? thanks .

  2. #2
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    You are missing a reference.
    Attached Images Attached Images  

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    13
    thanks guy! it really work

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