I'm using the PdfViewer with succes but when a pdf is loaded that pdf is also locked in the filesystem.
is there some way to prevent that?
So I would like to load the pdf and then disconnect form the file while the content is still in de PdfViewer.
Regards
Didier
1 Answer, 1 is accepted
0
Dimitar
Telerik team
answered on 19 Jan 2017, 12:00 PM
Hi Didier,
You can copy the file stream and then load the document:
using (FileStream fs = new FileStream(@"C:\test.pdf", FileMode.Open))
{
MemoryStream ms = new MemoryStream();
fs.CopyTo(ms);
radPdfViewer1.LoadDocument(ms);
}
I hope this will be useful. Let me know if you have additional questions.