Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# How to display a PDF file from Windows app?

C# How to display a PDF file from Windows app?

Scheduled Pinned Locked Moved C#
questioncsharphelptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mperazac
    wrote on last edited by
    #1

    My Windows app has a help file in PDF format. How do I display this file when user clicks on Help command? Thanks.

    V A G 3 Replies Last reply
    0
    • M mperazac

      My Windows app has a help file in PDF format. How do I display this file when user clicks on Help command? Thanks.

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      The System.Process() method can take a path to the file you want to open. As long as a program is registered with the PDF file type, it will work. Alternatively, if you know where a specific PDF reader resides, you will have to invoke the EXE and pass the PDF path as a parameter.

      Cheers, Vıkram.


      After all is said and done, much is said and little is done.

      1 Reply Last reply
      0
      • M mperazac

        My Windows app has a help file in PDF format. How do I display this file when user clicks on Help command? Thanks.

        A Offline
        A Offline
        Albu Marius
        wrote on last edited by
        #3

        If you know for sure that the user has Adobe Reader installed on his/her PC you can start that process with a parameter representing the path to your help file. This is the easiest solution, but not the most elegant.

        1 Reply Last reply
        0
        • M mperazac

          My Windows app has a help file in PDF format. How do I display this file when user clicks on Help command? Thanks.

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          You can display pdf file on your form too.

          #region signature my articles #endregion

          M 1 Reply Last reply
          0
          • G Giorgi Dalakishvili

            You can display pdf file on your form too.

            #region signature my articles #endregion

            M Offline
            M Offline
            mperazac
            wrote on last edited by
            #5

            How can I do that? Do you have an example code? Thanks

            G 1 Reply Last reply
            0
            • M mperazac

              How can I do that? Do you have an example code? Thanks

              G Offline
              G Offline
              Giorgi Dalakishvili
              wrote on last edited by
              #6

              You can add the necessary com object from the refernces

              #region signature my articles #endregion

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups