Results 1 to 9 of 9

Thread: Calling a 'Crystal Reports' Report (RESOLVED)

  1. #1

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Resolved Calling a 'Crystal Reports' Report (RESOLVED)

    Hello everybody

    I`ve been playing around with Crystal Reports 10 for awhile. Now I want to call a report I created from VB 6. How can I go about? Do I need to include a reference to Crystal Reports 10 in my project.

    George Papadopoulos
    Last edited by divined; May 31st, 2005 at 02:06 AM.
    SteadFast!

  2. #2
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Re: Calling a 'Crystal Reports' Report

    Add a crystalreport component. Then set the report file property to your report which was created.

    Then place the code :
    crystalreport1.action=1

  3. #3

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Re: Calling a 'Crystal Reports' Report

    ok. So that means that I should make whatever filtering in the external Crystal Reports file. But what if I want to pass a parameter from my application to the form. E.t.c. I want to pass a date the user has entered, which will possibly reduce the recordset.
    Can that be done?
    SteadFast!

  4. #4
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Calling a 'Crystal Reports' Report

    try thisRobDogg's

  5. #5

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Re: Calling a 'Crystal Reports' Report

    ok. I see that with Robdog`s code one can filter out the recordset passed to the report. But what about the report design process. When I create a new blank report in Crystal Reports it immediately ask for the connection info, so that I have access to the fields and tables I want. Does this interfere with Robdog`s code in any way?
    SteadFast!

  6. #6
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Calling a 'Crystal Reports' Report

    have a look in this one, i got it from this forum also.
    Attached Files Attached Files

  7. #7

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Re: Calling a 'Crystal Reports' Report

    ok. thx. I`ll check that out as well. One thing I don`t understand in Robdog`s code is the crvMyViewer object. Ok, I can add a reference to the Crystal Reports viewer control but doesn`t this object need to be defined somewhere?
    Something like :

    Code:
      Dim crvMyCrViewer As CRAXDRT.ReportViewer
    or is this some sort of control I can place on a form?
    SteadFast!

  8. #8
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: Calling a 'Crystal Reports' Report

    nope it is declared

    "Dim crvMyCrViewer As CRAXDRT.ReportViewer"

  9. #9

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Re: Calling a 'Crystal Reports' Report

    One final thing. Which library do I need to reference in order to use the CRAXDRT objects? Visual Basic does not recognize CRAXDRT as is!
    SteadFast!

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