This question is locked. New answers and comments are not allowed.
I'm using RadPdfViewer control, and it works correctly if I write my code like this:
But I want to load files that are hosted on a server (within the same network). I tried this:
As a test, I try a local file
Is there a way to do it?
PS: All the files have read permissions are published
var stream = Application.GetResourceStream(new Uri("SampleData/doc.pdf", UriKind.Relative)).Stream;pdfViewer.DocumentSource = new PdfDocumentSource(stream);But I want to load files that are hosted on a server (within the same network). I tried this:
Stream stream = File.OpenRead(@"\\192.168.1.100\pdf$\doc.pdf"); pdfViewer.DocumentSource = new PdfDocumentSource(stream);As a test, I try a local file
Stream stream = File.OpenRead(@"C:\pdf\doc.pdf"); pdfViewer.DocumentSource = new PdfDocumentSource(stream);Is there a way to do it?
PS: All the files have read permissions are published