I am working on a C# .Net Windows application. Here I create report using Infragistics.Documents.Report and export to .pdf & .xps format. Here I want to bringthose 2 files(.pdf & .xps) into WinForms and display. How to bring saved .pdf & .xps file into win forms.
Asked
Active
Viewed 2.5k times
3 Answers
4
Put a web browser control in your form and navigate it to the PDF / XPS file. Providing a PDF Reader is installed on your system it should work great.

Jeroen Ritmeijer
- 2,772
- 3
- 24
- 31
-
But it can cause the adobe reader to block the view with it's menus – TK-421 Jul 25 '19 at 12:55
4
You can also use:
using System.Diagnostics;
...
Process.Start("Foo.pdf");
This is equivalent to the user double-clicking on a PDF file and will launch whatever PDF reader is installed on the system.

Panagiotis D.
- 41
- 9

NascarEd
- 1,380
- 12
- 14
1
http://blog.paritor.com/SimonBlog_Archive.html
Article, that you need, named "Integrating WPF with Windows Forms". DocumentViewer control is the part of WPF, but you still can embed WPF into your app.

Maxim Popravko
- 4,100
- 3
- 29
- 43