Question VS 2008 File not found issue

zendog1960

Member
Joined
Jan 9, 2008
Messages
19
Programming Experience
Beginner
Bear with me here...

I have a solution which upon a button push, loads a PDF into the application for viewing. The loaded PDF is an index page linking to other PDFs. This all came off a CD of a Vendor. My client want me to create a "Job Book" of all the CDs from these vendors.

Here is the issue. When select the button for a particular document, the front page of the PDF (Index Page) load fine. The loaded PDF has buttons as links to the various pdfs so when I select a button within the loaded PDF I get a message stating it cannot find the pdf requested. The buttons within the index pdf are all set to relative path so all the folders should be available. but alas the program does not find them.

How can I set up a list of directories that the program will know are available? Or is there some other way to make sure the links withing the program will work once published?

Side Note: The complete contents of the CDs have been added to the solutions and set to 'copy if Newer'. I also made sure the structure was identical to the CD as well.

Any and all help would be greatly appreciated.

Zen
 
Relative to what? (to app, to current file, to current dir?) Current directory can be set: My.Computer.FileSystem.CurrentDirectory Property

The directory the files are in are going to be relative as this will be on either a thumb drive or external hard drive thus the drive letter which is mapped is relative to whatever is open on the end users machine.

I want to avoid launching the PDF completely separate from our app but it sound that it might be the only option.
 
Back
Top