No. A PictureBox
can only display a System.Drawing.Image
, which a PDF is not.
Instead, you should be searching for a Winforms PDF viewer.
Frage
I want to show a pdf page in the picturebox. Is it possible to do that? if not is there any other way out where i can show the pdf page inside the windows form in visual studio? Thanks
Lösung
No. A PictureBox
can only display a System.Drawing.Image
, which a PDF is not.
Instead, you should be searching for a Winforms PDF viewer.
Andere Tipps
You can do that by using Ghostscript.NET (Ghostscript library wrapper for .NET).
Take a look at this blog: How to use Ghostscript.NET library to render PDF's directly to the screen
You can download Ghostscript.NET from here: https://ghostscriptnet.codeplex.com/