I used CEFSharp
Which is basically embeded Chrome as a Windows Form Control.
You need to include the distributable portion of it in your Client Files
Then simply delcare a class Level ChromiumBrowser
ChromiumWebBrowser browser;
Then add it to a control (groubox in this case) wherever you want it to show up
grpPGOrder.Controls.Add(browser);
Then you can have it display anything a file, a URL etc…
browser.Load(fileName);
In my case I just say load “pdf” where the PDF is the PDF File I download from Epicor
Dictionary<String,String> metaData = new Dictionary<String,String>();
var fileData = attachmentBO.DocStarDownloadFile(xFileRefNum,ref metaData);
string fileName = Path.GetTempFileName().Replace(".tmp",".pdf");
File.WriteAllBytes(fileName, fileData);
UD103Form.Invoke((System.Threading.ThreadStart)delegate()
{
//modify UI elements here
browser.Load(fileName);
pbProgress.Style =ProgressBarStyle.Continuous;
});