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. How can I have *.Pdf files in C# Project ?

How can I have *.Pdf files in C# Project ?

Scheduled Pinned Locked Moved C#
questioncsharphtmlhelptutorial
14 Posts 5 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.
  • L Laji59

    I want to see ( view ) some files with different formats like "PDF" or "DOC" or "HTML" , ... how can I do it? I`m not a professional programmer so help me in a simple way! Please!!! Also I don`t know how to use a reference or Dll in C# Project I need your help immediately

    Hello Friends

    P Offline
    P Offline
    Paul Conrad
    wrote on last edited by
    #2

    Laji59 wrote:

    I need your help immediately

    No can do until you rephrase your question in a manner that is more understandable.

    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

    L F 2 Replies Last reply
    0
    • P Paul Conrad

      Laji59 wrote:

      I need your help immediately

      No can do until you rephrase your question in a manner that is more understandable.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      L Offline
      L Offline
      Laji59
      wrote on last edited by
      #3

      OK I ask my question in another way : I have a listbox that there are some names of different EBook in it. these EBooks have different format like "PDF" , "DOC" , "HTML" , ... Now I want to bring the text of these EBooks in my C# Project for example I think I need a PDF viewer or doc viewer; but I don`t know how to use it thanks in advaced

      Hello Friends

      P 1 Reply Last reply
      0
      • L Laji59

        OK I ask my question in another way : I have a listbox that there are some names of different EBook in it. these EBooks have different format like "PDF" , "DOC" , "HTML" , ... Now I want to bring the text of these EBooks in my C# Project for example I think I need a PDF viewer or doc viewer; but I don`t know how to use it thanks in advaced

        Hello Friends

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #4

        Makes sense now. Very tall order and cannot really be done in a forum post. In short, you'll need code that handles rendering the various formats.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        L 1 Reply Last reply
        0
        • P Paul Conrad

          Makes sense now. Very tall order and cannot really be done in a forum post. In short, you'll need code that handles rendering the various formats.

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          L Offline
          L Offline
          Laji59
          wrote on last edited by
          #5

          you can help me by giving a code that handles only PDF format

          Hello Friends

          P 1 Reply Last reply
          0
          • L Laji59

            I want to see ( view ) some files with different formats like "PDF" or "DOC" or "HTML" , ... how can I do it? I`m not a professional programmer so help me in a simple way! Please!!! Also I don`t know how to use a reference or Dll in C# Project I need your help immediately

            Hello Friends

            L Offline
            L Offline
            Lutoslaw
            wrote on last edited by
            #6

            You can assume that a client machine have installed Acrobat Reader or similar software and use System.Diagnostics.Process.Start(string fileName) method to launch a PDF file. If you don't want to make such assumptions (and you should not), you can attach to the installator a light-weight PDF viewer like a Foxit Reader[^] (the best PDF viewer I've ever seen). On this[^] page you can also get a Foxit SDK which allows you to render pdfs into bitmaps and then use them in your app. Hope it helps.

            Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

            L 1 Reply Last reply
            0
            • L Lutoslaw

              You can assume that a client machine have installed Acrobat Reader or similar software and use System.Diagnostics.Process.Start(string fileName) method to launch a PDF file. If you don't want to make such assumptions (and you should not), you can attach to the installator a light-weight PDF viewer like a Foxit Reader[^] (the best PDF viewer I've ever seen). On this[^] page you can also get a Foxit SDK which allows you to render pdfs into bitmaps and then use them in your app. Hope it helps.

              Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

              L Offline
              L Offline
              Laji59
              wrote on last edited by
              #7

              Thanks a lot, gajatko but I want to bring the content of Pdf File or Doc File to my Windows Control Like Textbox or other controls how can I do it? thanks away

              Hello Friends

              L 1 Reply Last reply
              0
              • L Laji59

                you can help me by giving a code that handles only PDF format

                Hello Friends

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #8

                Laji59 wrote:

                help me by giving a code that handles only PDF format

                No. I don't give out code, just suggestions on what to do.

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                1 Reply Last reply
                0
                • L Laji59

                  I want to see ( view ) some files with different formats like "PDF" or "DOC" or "HTML" , ... how can I do it? I`m not a professional programmer so help me in a simple way! Please!!! Also I don`t know how to use a reference or Dll in C# Project I need your help immediately

                  Hello Friends

                  N Offline
                  N Offline
                  nelsonpaixao
                  wrote on last edited by
                  #9

                  Try search about, using stream reader or writer in using system.data.io, you find will something. :omg:

                  L 1 Reply Last reply
                  0
                  • N nelsonpaixao

                    Try search about, using stream reader or writer in using system.data.io, you find will something. :omg:

                    L Offline
                    L Offline
                    Laji59
                    wrote on last edited by
                    #10

                    thanks a lot, nelsonpaixao that was a very good way for working with text file and reading & writing them But as I siad I want to bring the content of Pdf file or Doc File to for example richTextFile I can`t use StreamReader class for working with PDF File & Doc File who can help me? Please!!! In fact I want to open PDF File in my application

                    Hello Friends

                    modified on Monday, August 4, 2008 6:06 AM

                    P 1 Reply Last reply
                    0
                    • P Paul Conrad

                      Laji59 wrote:

                      I need your help immediately

                      No can do until you rephrase your question in a manner that is more understandable.

                      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                      F Offline
                      F Offline
                      Firedragonweb
                      wrote on last edited by
                      #11

                      If you can assume that the Adobe Reader is installed on the target machine, you could use a webbrowser-control to display the pdf, if I'm not mistaken. Michael.

                      P 1 Reply Last reply
                      0
                      • F Firedragonweb

                        If you can assume that the Adobe Reader is installed on the target machine, you could use a webbrowser-control to display the pdf, if I'm not mistaken. Michael.

                        P Offline
                        P Offline
                        Paul Conrad
                        wrote on last edited by
                        #12

                        It sounds like the OP wants to extract from PDF, and DOC files.

                        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                        1 Reply Last reply
                        0
                        • L Laji59

                          thanks a lot, nelsonpaixao that was a very good way for working with text file and reading & writing them But as I siad I want to bring the content of Pdf file or Doc File to for example richTextFile I can`t use StreamReader class for working with PDF File & Doc File who can help me? Please!!! In fact I want to open PDF File in my application

                          Hello Friends

                          modified on Monday, August 4, 2008 6:06 AM

                          P Offline
                          P Offline
                          Paul Conrad
                          wrote on last edited by
                          #13

                          Laji59 wrote:

                          I want to open PDF File in my application

                          You'll need to look at third party controls, perhaps.

                          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                          1 Reply Last reply
                          0
                          • L Laji59

                            Thanks a lot, gajatko but I want to bring the content of Pdf File or Doc File to my Windows Control Like Textbox or other controls how can I do it? thanks away

                            Hello Friends

                            L Offline
                            L Offline
                            Lutoslaw
                            wrote on last edited by
                            #14

                            I wrote:

                            On this[^] page you can also get a Foxit SDK which allows you to render pdfs into bitmaps and then use them in your app. Hope it helps.

                            Bitmaps can be displayed in a Form with PictureBox control

                            Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

                            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