Viewing PDFs in our applications is a common request that is easily solved.
We are working on a visual framework for viewing PDFs in C#/.Net – in the mean time you have lots of viable free options without resolting to Adobe Acrobat.
For viewing PDF documents directly in WPF you can use the native WebBrowser control.
For viewing PDF documents directly in windows forms (WinForms) applications the WebBrowser control is also a good choice.
To open a PDF from any application in an external window, we may use a trick involving System.Diagnostics.Process.Start.
This will generally open the PDF in the default web browser which supports viewing PDF content, or Adobe Acrobat if installed.
// Render any HTML fragment or document to HTML
var Renderer = new IronPdf.HtmlToPdf();
var PDF = Renderer.RenderHtmlAsPdf("<h1>Hello IronPdf</h1>");
var OutputPath = "HtmlToPDF.pdf";
// This neat trick opens our PDF file so we can see the result in our default PDF viewer