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
  1. Home
  2. General Programming
  3. C#
  4. link label (to PDF files)

link label (to PDF files)

Scheduled Pinned Locked Moved C#
question
6 Posts 2 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.
  • P Offline
    P Offline
    printscreen12345
    wrote on last edited by
    #1

    I have some link labels on a tabpage which are supposed to link to some PDF files when clicked. How do I load and open the PDF files? Thanks!

    C 1 Reply Last reply
    0
    • P printscreen12345

      I have some link labels on a tabpage which are supposed to link to some PDF files when clicked. How do I load and open the PDF files? Thanks!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your browser should just open them.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      P 1 Reply Last reply
      0
      • C Christian Graus

        Your browser should just open them.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        P Offline
        P Offline
        printscreen12345
        wrote on last edited by
        #3

        But how do I write the code? It's a linkclicked event.

        C 1 Reply Last reply
        0
        • P printscreen12345

          But how do I write the code? It's a linkclicked event.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I was thinking of a web app. Process.Start will start the PDF viewer for you.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          P 1 Reply Last reply
          0
          • C Christian Graus

            I was thinking of a web app. Process.Start will start the PDF viewer for you.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            P Offline
            P Offline
            printscreen12345
            wrote on last edited by
            #5

            It works. But what if I want the document to be displayed in my window application (rather than opening an external application)?

            C 1 Reply Last reply
            0
            • P printscreen12345

              It works. But what if I want the document to be displayed in my window application (rather than opening an external application)?

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              The obvious solution is a webbrowsercontrol, as that already knows how to show PDFs, and can be added to a form.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

              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