View the PDF Stream in PDF Viewer
PDF files as stream can be viewed in Essential PdfViewerControl using the overload available in the Load method. Following are the code snippets.
FileStream stream = new FileStream("Sample.pdf", FileMode.Open); //Initialize PDF Viewer PdfViewerControl pdfViewerControl1 = new PdfViewerControl(); //Load the PDF pdfViewerControl1.Load(stream);
Dim stream As New FileStream("Sample.pdf", FileMode.Open) 'Initialize PDF Viewer Dim pdfViewerControl1 As New PdfViewerControl() 'Load the PDF pdfViewerControl1.Load(stream)
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page