I'm looking for a solution , I want to view a pdf file on a windows form C# from a remote server / url.
Is this doable?
I'm looking for a solution , I want to view a pdf file on a windows form C# from a remote server / url.
Is this doable?
Check this out. I'm using the PDF Viewer control by DevExpress to display PDF documents within the app.
using System.Net;
string Url = "YOUR_URL";
using(WebClient client = new WebClient()) {
using(MemoryStream ms = new MemoryStream(client.DownloadData(Url))) {
pdfViewer1.LoadDocument(ms);
}
}
Whilst using windows you should get the most consistent support using the native PDF engine which from Windows 7 (however depreciating as EOL) to 11 is MSEdge this can be integrated into WebView 2
and the best place to see starter and example code is at
the github location is