[Message Deleted]
-
To get the path of your executable: System.Reflection.Assembly.GetEntryAssembly().Location Then just get the directory with System.IO.Path.GetDirectoryName(), and use System.IO.Path.Combine() to tack on the PDF filename. (Better to use System.IO.Path than string parsing, to make sure it'll work regardless of the location... forward slashes / backslashes, etc)
Proud to have finally moved to the A-Ark. Which one are you in? Developer, Author (Guardians of Xen)
-
Or you could try this: (assuming the PDF file will always be in the same directory as your application executable) Process.Start(Environment.CurrentDirectory + @"\file.pdf"); Hope this helps.
Regards, Jason Pezzimenti.
If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.