I have a pdf file Placed in the Resource folder. I want to display the PDF File using WebBrowser control. The Main Problem is to find the relative path of the PDF and convert it to absolute, since the WebBrowser dosnt support relative Path.
so far I have the following code(simplified version):
string GuidePath = "../Resources/Guide/LogViwer User Manual.pdf";
string fullPath = Path.GetFullPath(GuidePath);
Uri GuideURI = new Uri(fullPath, UriKind.Absolute);
Browser.Navigate(GuideURI);
'Browser' is aninstance of a WebBrowser.
The Exeption I get is:
Connot find ...Path... Make sure the path and Internet address is correct.