Hello,
The filestream that I am using to open my pdf file is being closed before it loads its data into a pdfViewer DocumentSource. As a result, my pdfviewer does not load nor show the data from the pdf file as its contents. How do I prevent this from occurring?
My code is below:
The filestream that I am using to open my pdf file is being closed before it loads its data into a pdfViewer DocumentSource. As a result, my pdfviewer does not load nor show the data from the pdf file as its contents. How do I prevent this from occurring?
My code is below:
this.pdfViewer.DocumentSource = new PdfDocumentSource(new FileStream(@".\Resources\MERE_User_Guide_v1_2.pdf", FileMode.Open, FileAccess.Read));
thanks