Results 1 to 3 of 3

Thread: Need help with Crystal Reports

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    28

    Angry

    Does anyone know how to change the path of the database used by Crystal Reports during Run Time? It would be great if I could use the GetprivateProfile call to do this
    Using VB 6.0 SP 3
    Bed goes up, bed goes down

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    You can change where the Report looks for it's Data using the DataFiles Property, i.e.
    Code:
    CrystalReport1.DataFiles(0) = "C:\MyMDBs\NewMDB.mdb"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    28
    Thank-you, I looked at that problem for awhile, I got it to work by using

    Report.Database.Tables.Item(1).location = "c:\whatever.mdb"

    but I am going to try your way.
    Using VB 6.0 SP 3
    Bed goes up, bed goes down

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