CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2000
    Posts
    200

    Adding Crystal Report component

    Is it possible to use Crystal Report designer with data from file, or must it come from a database? I wanted to use it to print an amortization schedule from user data that resides in memory and is saved to a file.

    Also, can anyone suggest a web site or good book to get up to speed using Crystal Reports?

    Thanks for your input!
    John

  2. #2
    Join Date
    May 2002
    Location
    Ballymena
    Posts
    57
    Hi,

    I was searching for something to do with crystal reports and came acrosee this piece of code which may help you:

    recordset = CreateObject("ADODB.Recordset.2.0")
    recordset.Open "EXEC OPEN LIBRARY/FILE(""NAMES.DAT"")", connection, adOpenDynamic, adLockOptimistic, adCmdText

    And then just add the recordset to your report document through .SetDataSource

    Dont know if this will help you, but, thought I would send it to you anyway,

    Jenny

  3. #3
    Join Date
    Sep 2000
    Posts
    200

    Wink

    Jenny,

    Thanks very much. I will certainly give it a try. Looks like it should work!

    John

  4. #4
    Join Date
    May 2002
    Location
    Ballymena
    Posts
    57
    That's alright, just hope it helps you!

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

Featured