Modify Vista and Office 2007 File and Attachment Preview Handlers to Support Foxit PDF Reader修改Vista和Office 2007文件和附件预览处理,以支持foxit PDF阅读器
In在…内 Windows Vista Windows Vista的 ’s File Explorer and奇摩档案总管和 Microsoft Office Outlook 2007 Microsoft Office Outlook 2007中 have a feature that allows you to preview an attachment in email message from within the Outlook 2007 itself directly after click on the preview option when you select an attachment, or the content of a file in Vista File Explorer when highlighted.有一个功能,可让您以预览附件中的电子邮件讯息,从内部的Outlook 2007中本身的直接后,按一下预览选项,当您选择的附件,或内容的文件,在Vista的档案总管时,突出了。 The preview will be shown in预览将显示在 preview pane预览窗格 in Outlook 2007 and Vista layout, and thus users need not to open the files in external programs or applications.在Outlook 2007和Vista的布局,因此,用户无须打开文件,在外部程序或应用程序。

XML file preview in Windows Vista XML文件的预览在Windows Vista
By default, the built-in native preview feature has only a few supported handlers for limited file types and extensions such as Word documents, PowerPoint presentations, Excel spreadsheets, \font files, video and audio files, and a variety of other file types that are commonly sent as attachments.默认情况下,内置在本土的预览功能,已只有少数支持处理有限的文件类型和扩展,如Word文件, PowerPoint简报, Excel试算表, \字体文件,视频和音频文件,及其他各种文件类型是常见的发送作为附件。 PDF (Portable Document Format) documents which is popular and widely used is left out.的PDF (可携式文件格式)文件,是普及和广泛使用的是遗漏了。 However, Microsoft Developer Network (MSDN) provides a不过,的Microsoft Developer Network ( MSDN )上提供了一个 sample preview handlers样本预览处理 which you can download and install in order to has the ability to preview Adobe PDF documents in Vista and Outlook 2007.您可以下载并安装在为了有能力预览的Adobe PDF文件在Vista和Outlook 2007 。 However, the developer use Adobe ActiveX control for the Acrobat PDF reader implementation, which will require users to have然而,开发使用Adobe ActiveX控制的Acrobat PDF阅读器执行,这将要求用户有 Adobe Reader Adobe Reader的 or或 Adobe Acrobat Reader使用Adobe Acrobat Reader installed.安装。
If you’re using alternative Acrobat PDF reader like如果您使用的替代acrobat PDF阅读器一样 Foxit Reader foxit读者 , then you will need to modify the PDF preview handler source code so that Windows Vista and Office Outlook 2007 can support Foxit Reader API properly, as advised by ,那么您将需要修改的PDF预览处理程序源代码,使Windows Vista和Office Outlook 2007中可以支持foxit读者的空气污染指数得当,所建议的 timheuer . 。
The file to modify is PdfPreviewHandler.cs from the该文件修改是pdfpreviewhandler.cs从 free preview handlers add-on download from MSDN免费预览处理加载上下载从MSDN (link at the bottom). (底部的链接) 。 Go to about line 41 and change to the following:去约线41条和变化如下:
// Foxit Reader ActiveX / / foxit读者的ActiveX
public PdfAxHost() 公共pdfaxhost ( )
: base("d46a7492-4b6c-446f-8100-4812edf406c9") { } :基地( “ d46a7492 - 4b6c - 446f - 8100 - 4812edf406c9 ” ) ( )
Next, the pinvoke method has to be changed as Adobe ActiveX control and API uses a LoadFile() signature, but foxit uses an OpenFile() signature.接下来, pinvoke方法要改变的Adobe ActiveX控件和API使用loadfile ( )签字,但foxit使用openfile ( )签字。 Foxit also uses a second parameter which is the starting page of the document. foxit还采用第二个参数是开始页的文件。 So locate the LoadFile in the file, and change to OpenFile to looks like the following:因此,找到loadfile在该文件,并改变openfile ,以看起来像以下内容:
_ocx.GetType().InvokeMember( _ocx.gettype ( ) 。 invokemember (
"OpenFile", BindingFlags.InvokeMethod, null, // changed to OpenFile “ openfile ” , bindingflags.invokemethod ,空, / /改为openfile
_ocx, new object[] { fileName, 0 }, CultureInfo.InvariantCulture); // added 0 parameter to array _ocx ,新的对象[ ] (文件名, 0 ) , cultureinfo.invariantculture ) ; / /补充说: 0参数数组
Save the file, compile and deploy.保存该文件,编译和部署。 And now you will have PDF preview capability in Windows Vista and Office 2007 without the need of Adobe Acrobat Reader.现在您将有PDF格式的预览能力在Windows Vista和Office 2007 ,而不需要的Adobe Acrobat Reader 。 Note that you will need to get请注意,您将需要得到 Foxit Reader SDK (ActiveX) foxit读者SDK中(的ActiveX ) in order for this modified version of Foxit PDF previewer to work, not just installing Foxit Reader, with charge or license fee applied.为了做到这一点的修改版本foxit PDF格式previewer工作,不只是安装foxit读者,与主管或许可费。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Foxit PDF Preview Handler Free Download foxit PDF格式预览处理免费下载
- Free Download: Vista and Office 2007 Preview Handler Pack to Support More File Types免费下载: Vista和Office 2007预览处理Pack ,以支持更多的文件类型
- Download .cs, .vb, .js and .sql Files Code Preview Handler for Vista and Outlook 2007下载。政务司司长。 VB的, 。 js和。的SQL文件代码预览处理为Vista和Outlook 2007
- Enable Previews in Windows Vista Folders with Preview Pane使预演在Windows Vista中文件夹与预览窗格
- Reset “Always Warn Before Previewing This Type of File” Setting in Outlook 2007重置“ ,始终警告之前,预览这种类型的文件”设置在Outlook 2007
- Preview C#, Visual Basic, and C++ Source Code files Direct in Attachments Without Opening预览C #中, Visual Basic和C + +源代码文件直接在附件没有开放
- Alternatives To Adobe Acrobat Reader替代的Adobe Acrobat Reader
- Alternative PDF Viewer to Acrobat Reader: Foxit Reader另类PDF浏览器,以Acrobat Reader软件阅览: foxit读者
- Free Download: Preview Handler Association Editor to Group Same Type of File with Different Extensions免费下载:预览处理协会编辑组相同类型的文件与不同的扩展
- Adobe PhotoShop (PSD) Preview Handler Free Download的Adobe Photoshop ( PSD )的预览处理免费下载



















May 27th, 2008 14:40 2008年5月27日14时40分
There is no need to modify nothing, just associate .pdf extension(there are a lot of preview handler association editors) with “MSDN Magazine Internet Explorer preview handler” and you will have working the real FoxitReader ActiveX as preview handler not that buggy and limited “FoxitReaderSDK(ActiveX)”.有没有需要修改无关,只是准。 PDF格式扩展名(有很多预览处理协会编辑) “的MSDN杂志的Internet Explorer预览处理” ,您将有工作真正foxitreader的ActiveX预览处理,不是小车和有限度的“ foxitreadersdk (的ActiveX ) ” 。 Same for every file type that InternetExplorer or one of his plugins can handler.同时为每个文件类型internetexplorer或他的一名插件可以处理。