Results 1 to 3 of 3

Thread: Crystal Report RecordSets

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    4

    Exclamation Crystal Report RecordSets

    I'm trying to figure out how to pass a Record Set from VB directly into Crystal Reports. Is their a simple way to just pass the record set into the program?

  2. #2
    Junior Member
    Join Date
    Sep 2000
    Location
    Kitchener, Ontario
    Posts
    31
    It depends on your definition of easy.

    What you have to do is create the report using with a database that contains the structure of your recordset. To do this when you add a database to the report select more data sources\active data\active data (field definitions only). This wil bring up another dialog. Select new, the next screen you get will be where you set up the structure of the recordset. Keep in mind that order does matter. If you set all of this up right to call the report use the following code

    With CrystalReport1 ' your crystal report object
    .ReportFileName = strPath ' full path to the report
    .SetTablePrivateData 0, 3, rsdata2
    .WindowState = crptMaximized
    .Action = 1
    End With

    In this exampel rsdata2 is the recordset you are sending to the report

  3. #3

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