Hello Team,
I'm using RadPdfViewer first time in my WinForm application. I want to load pdf from url (e.g. http://10.70.0.170/PDF/sample.pdf ).
Kindly please suggest me how I load PDF from url in RadPdfViewer Control.Kindly le me know if any other detail required.
Thanks in advance
Loading

Vipan SharmaPosted Sep 9, 2015, 12:46 AM
using (WebClient client = new WebClient())
{
using (Stream ms = new MemoryStream(client.DownloadData("http://10.70.0.60 /PDF/sample.pdf")))
{
MemoryStream mStream = new MemoryStream();
mStream.SetLength(ms.Length);
ms.Read(mStream.GetBuffer(), 0, (int)ms.Length);
this.radPdfViewer1.LoadDocument(mStream);
}
}