Results 1 to 3 of 3

Thread: Crystal reports & relative paths

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    Hello. Not sure if this is really a VB problem - i mean, i`m using Crystal Reports from Visual Basic but this problem may be fixable in the actual report definition itself.

    I have a database hard-wired into my crystal report (c:\this\that\database.mdb) and i want to change it so it looks up a level, then down into \data.

    c:\this\that\report\report.rpt
    c:\this\that\data\database.mdb

    so the path should be ..\data\database.mdb

    but i just cant get the report to live with it! Any ideas?

    Thanks,
    Alex.

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Posts
    27
    I think this is how you do it
    put this in vb
    CrystalReport1.DataFiles(0) = App.Path + "\data\database.mdb"

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    I think that is for the active x component. I`m using crystal reports v8 and the RDC component so that wont work.
    Looks like what i want is

    PESetNthTableLocation

    but i havent got a clue how!

    Thanks,
    alex.

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