CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Crystal Reports

  1. #1
    Join Date
    Jan 2000
    Posts
    1

    Crystal Reports

    DefFileCreated is an integer variable. The function returns a 0 or a 1. If the file is created successfully (and it is) it goes on and does the second part.

    DefFileCreated = CreateFieldDefFile(mRecordset,
    "C:\WorkingArea\ContactNotes.ttx", 1)
    This second line gives me a runtime error '9' Subscript out of range.
    Report.Database.SetDataSource mRecordset, 3, 1



  2. #2
    Join Date
    Jan 2000
    Location
    Kansas City, MO
    Posts
    34

    Re: Crystal Reports

    The above message is a post sent for me by a friend. I am trying to fill a CR report with dynamic data. There is no Field Definition File, or database for the report to attach to until run-time. Therefore, I am trying to set a ADODB.Recordset object as the data source at runtime. Can anyone tell me what I am doing wrong?

    Old school... six lines a day and I'm done.

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