开发者

display PDF file into WinForms

I am working on a C# .Net Windows application. Here I create report using Infragistics.Documents.Report and export to .pdf &开发者_C百科amp; .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.


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜