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
Printable View
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
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"
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.