【发布时间】:2010-09-08 11:28:51
【问题描述】:
任何想法如何在 WPF Windows 应用程序中显示 PDF 文件?
我正在使用以下代码运行浏览器,但Browser.Navigate 方法没有做任何事情!
WebBrowser browser = new WebBrowser();
browser.Navigate("http://www.google.com");
this.AddChild(browser); // this is the System.Windows.Window
【问题讨论】:
-
要在 WPF 中显示 PDF 吗?
-
是用于在 Acrobat 中从外部启动,还是需要设计时控件才能在应用程序内部显示?
-
我没有
WebBrowser控件,而是使用exported PDF to XpsDocument 并使用WPF 的DocumentViewer控件进行显示。