This is a migrated thread and some comments may be shown as answers.

Filestream being closed before PDFViewer loads document

1 Answer 80 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 06 Jul 2012, 12:04 AM
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:

 

this.pdfViewer.DocumentSource = new PdfDocumentSource(new FileStream(@".\Resources\MERE_User_Guide_v1_2.pdf", FileMode.Open, FileAccess.Read));

thanks

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 10 Jul 2012, 03:23 PM
Hello Rajesh,

I am afraid I don't quite understand your question and we have not observed similar issues.

Do you close the stream or you think that RadPdfViewer is closing it?

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PDFViewer
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or