同样的WPF窗口内查看PDF文档 [英] View PDF document inside the same WPF windows

查看:127
本文介绍了同样的WPF窗口内查看PDF文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要查看WPfWindows内的PDF文档。我使用一个WebBrowser它,当我在32位的WinXP机器运行应用程序的文件出现在WPFWindow里面,但是当我在64位WinVista运行在一个新的浏览器中打开(它看起来如果浏览器下载等等PDF文档)。我与VS2008的工作。那么对于测试目的,我也创造VS2010与WinVista 64位新的WPF应用程序,并有PDF文档WpfWindows内开放,因为我想要的,但在这个项目中我不能与VS2010工作。请,有人知道为什么会发生,我怎么能不动,
先谢谢了。

I need to view a pdf document inside a WPfWindows. I'm using a WebBrowser for it, and when i run the app in a WinXP 32Bits machine the document appear inside the WPFWindow, but when i run it in WinVista 64bit it open in a new browser(it look like if the browser download the pdf document). I'm working with VS2008. Then for testing purpose I also create a new WPF app in VS2010 with WinVista 64Bits and there the pdf document open inside the WpfWindows as i want, but i can't work with VS2010 in this project. Please, somebody knows why it happen and how I can fixed, Thanks in advance.

我使用的Adobe Acrobat 8​​ 32位,32位VS2008,IEXPLORER 8。

I am using Adobe Acrobat 8 32bit, VS2008 32bits, IExplorer 8.

PD:请原谅任何拼写错误

Pd: Please, forgive any spelling mistakes.

推荐答案

我想你已经回答了你的问题,当你说:我使用Adobe Acrobat 8​​ 32位,32位VS2008,IEXPLORER 8。

I think you have answered your question when you said "I am using Adobe Acrobat 8 32bit, VS2008 32bits, IExplorer 8".

在一个64位操作系统,WPF应用程序将运行作为64位应用程序,因此它会连接到Internet Explorer 64位和Acrobat Reader不会在浏览器内运行。为了解决你的问题,你可以强制你的应用程序要建32位(x86),而不是值为anycpu。

In a 64 bit OS, your WPF application will be run as a 64 bit application, hence it will be linked to Internet Explorer 64 bit and Acrobat Reader will not run inside the browser. In order to solve your problem you can force your application to be built as 32 bit (x86) instead of AnyCPU.

这篇关于同样的WPF窗口内查看PDF文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆