I'm currently using System.Diagnost ics.Process.Sta rt("..\Document s\sample.pdf") to open the document. It works great but in my program when I open up a document using the OpenDialog control it will break something.
After opening up a file using the OpenDialog control I try to open up the PDF but then the file cannot be found. I think current path changes... and is no longer in the directory I need it to be in.
How do I get VB to tell me its current directory or even tell me the path of the install program so I can tell it where to go to find the document?
The big issue is that I deploy this program to many users so they may install it in different areas so I cannot use the same file location such as C:\ProgramFiles \PDF_Docs\myPdf .pdf as the path.
I have a folder for documents in side my vb project that holds the document.
After opening up a file using the OpenDialog control I try to open up the PDF but then the file cannot be found. I think current path changes... and is no longer in the directory I need it to be in.
How do I get VB to tell me its current directory or even tell me the path of the install program so I can tell it where to go to find the document?
The big issue is that I deploy this program to many users so they may install it in different areas so I cannot use the same file location such as C:\ProgramFiles \PDF_Docs\myPdf .pdf as the path.
I have a folder for documents in side my vb project that holds the document.
Comment