Answered by:
how to display an pdf file in windows picturebox

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
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
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 -
there are other methods to show pdf content in .net
http://www.dreamincode.net/forums/topic/67437-view-pdf-in-richtextbox-in-windowsform/
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
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
Wednesday, July 7, 2010 5:10 AM