locked
how to display an pdf file in windows picturebox RRS feed

  • Question

  • Hi All,

     

    I am working on an desktop application. here i need to show the stored pdf files in picture box.

     

    I am able to get path and location where pdf files are stored. I need to display pdf file in picture box.  How to do this.

     

    Thanks in advance

    Tuesday, July 6, 2010 11:46 AM

Answers

  • thanks for replay,

     

    I tried to display pdf in richtextbox but i am not able to add  pdfAcroViewer control to richtextbox how an i do this. can any one help me.

     

    Thanks

    • Proposed as answer by Chao Kuo Thursday, July 8, 2010 12:37 PM
    • Marked as answer by Chao Kuo Monday, July 12, 2010 12:17 PM
    Wednesday, July 7, 2010 3:57 AM
  • I tried to display pdf in richtextbox but i am not able to add  pdfAcroViewer control to richtextbox how an i do this. can any one help me.


    That makes even less sense than adding it to a PictureBox, but you do it the same way:

    pdfAcroViewer.Parent = richTextBox1

    • Proposed as answer by Chao Kuo Thursday, July 8, 2010 12:37 PM
    • Marked as answer by Chao Kuo Monday, July 12, 2010 12:17 PM
    Wednesday, July 7, 2010 5:10 AM

All replies

  • Not sure why you would want to do this, but the PictureBox is a control container.  Set your PDFReader.Parent property to the PictureBox.
    Tuesday, July 6, 2010 12:48 PM
  • thanks john,

     

    I am really confused how to show an pdf file in an windows form. Is there any other method.

     

    I am not able to set pdfreader.parent property to picturebox

     

    thanks in advance

    Tuesday, July 6, 2010 12:53 PM
  • Tuesday, July 6, 2010 1:47 PM
  • thanks for replay,

     

    I tried to display pdf in richtextbox but i am not able to add  pdfAcroViewer control to richtextbox how an i do this. can any one help me.

     

    Thanks

    • Proposed as answer by Chao Kuo Thursday, July 8, 2010 12:37 PM
    • Marked as answer by Chao Kuo Monday, July 12, 2010 12:17 PM
    Wednesday, July 7, 2010 3:57 AM
  • I tried to display pdf in richtextbox but i am not able to add  pdfAcroViewer control to richtextbox how an i do this. can any one help me.


    That makes even less sense than adding it to a PictureBox, but you do it the same way:

    pdfAcroViewer.Parent = richTextBox1

    • Proposed as answer by Chao Kuo Thursday, July 8, 2010 12:37 PM
    • Marked as answer by Chao Kuo Monday, July 12, 2010 12:17 PM
    Wednesday, July 7, 2010 5:10 AM