Opening a pdf in .NET
        Posted  
        
            by link664
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by link664
        
        
        
        Published on 2009-10-28T02:00:13Z
        Indexed on 
            2010/06/03
            20:54 UTC
        
        
        Read the original article
        Hit count: 350
        
In the application we are working on we are trying to implement Help. We have a help pdf document and for the moment it has been deemed acceptable that when users click the help button it just opens the pdf. The application is a desktop app and the pdf file needs to be included in the install somehow and installed on the local machine.
I essentially need two things:
- How would I add this pdf to the application so that it is available on the client machine after install? I can either put it in the resources of the project, or else I could put it in the Application Folder of the client setup installer. 
- How would I open this pdf? I can either open this pdf by just launching the default pdf viewer for the file, or I can use the System.WinForms.WebBrowser tool to display it. However if I choose the second option, I am unsure of how to access the file stored in the resources or find it in the install folder. 
If you could please provide me with the code to do this (either in VB.Net or C#.Net) that would be great.
© Stack Overflow or respective owner