Results 1 to 3 of 3

Thread: this is my code who can help plz

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85

    this is my code who can help plz

    hi
    i tried call my CR-report file from within VB code but error appeared tell = "type mismatch"
    ------------------
    iam using crystal report ver 8
    VB 6
    dataenvironment
    ----------------
    i already designed my report its working fine while iam on crystal report program
    -----------------------------
    Private Sub cmd_rpt_Click()
    With CrystalReport1

    .DataSource = "DataEnvironment1" <--------: here is the error

    .Action = 1
    End With
    End Sub
    -----------------
    thanks
    thanks

  2. #2
    Lively Member
    Join Date
    Jun 2003
    Posts
    83
    Try this:
    Code:
    .DataSource = DataEnvironment1
    Remember, you want to reference the actual object, not the string value of it.
    - Steve

    "I'm glad I wore these pants."

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85

    i tried this befor but

    hi

    i tried this befor but also there is error ="datasource property not set"


    by the way i forgot to mention iam using sql2000

    okay
    thanks

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