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的布局,因此,用户无须打开文件,在外部程序或应用程序。

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 我的数字生活论坛 .



One Response to “Modify Vista and Office 2007 File and Attachment Preview Handlers to Support Foxit PDF Reader” 1回应“修改Vista和Office 2007文件和附件预览处理,以支持foxit PDF阅读器”

  1. dott
    May 27th, 2008 14:40 2008年5月27日14时40分
    1

    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或他的一名插件可以处理。

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

pdf file previewer PDF档案previewer - - pdf previewer outlook PDF格式previewer展望 - - office 2007 pdf viewer Office 2007的PDF浏览器 - - pdf viewer for Vista PDF浏览器为Vista的 - - file previewer pdf PDF格式文件previewer - - pdf reader vista PDF阅读器Vista的 - - office pdf previewer 办公室的PDF previewer - - vista pdf viewer Vista的PDF浏览器 - - pdf viewer office 2007 PDF浏览器的Office 2007 - - office previewers 办公室previewers - - foxit vista foxit Vista的 - - office 2007 key reader Office 2007的关键读者 - - outlook 2007 file previewer Outlook 2007中的档案previewer - - enable adobe pdf preview handler 使以Adobe PDF预览处理 - - outlook 2007 attachment previewer Outlook 2007的附件previewer - - foxit pdf vista foxit PDF格式Vista的 - - office 2007 acrobat file previewer Office 2007的Acrobat档案previewer - - wav preview handler outlook 2007 wav预览处理Outlook 2007中 - - vista pdf reader Vista的PDF阅读器 - - pdf preview handler for vista x64 PDF格式预览处理对Vista x64 - - vista pdf preview handler Vista中处理PDF格式预览 - - outlook file previewer Outlook文件previewer - - pdf preview handler vista x64 PDF格式预览处理Vista的x64 - - outlook attachment preview 展望实习预览 - - adobe pdf previewer Adobe PDF产品previewer - - outlook file preview Outlook文件预览 - - foxit reader vista foxit读者Vista的 - - adobe foxit pdf internet explorer foxit的Adobe PDF格式的Internet Explorer - - no pdf previews in vista 64 没有PDF格式预览,在Vista的64 - - all 全部 - - outlook change attachment previewer handler 前景变化扣押previewer处理 - - attachment previewers api 实习previewers空气污染指数 - - outlook 2007 preview attachment Outlook 2007中预览附件 - - pdf preview handler not working in vista PDF格式预览处理没有工作在Vista - - how to change default pdf viewer in vista 如何改变默认的PDF浏览器在Vista - - pdfpreviewhandler for vista 64 bit pdfpreviewhandler为Vista的64位 - - help on office2007 attachment 帮助对office2007实习 - - mdi file previewer mdi文件previewer - - office 2007 attachment Office 2007的附件 - - acrobat 8.1 viewer in outlook 2007 not working acrobat 8.1观众在Outlook 2007中不工作 - - adobe previewer Adobe公司previewer - - adobe pdf preview not working in outlook 2007 以Adobe PDF预览没有工作在Outlook 2007 - - Download Foxit PDF viewer outlook 下载foxit PDF浏览器的Outlook - - pdf preview handler vista64 PDF格式预览处理vista64 - - pdf previewer vista PDF格式previewer Vista的 - - .mdi previewer 。 MDI的previewer - - ADOBE PREVIEWER HANDLER Adobe公司previewer处理 - - attachment fraud with ms outlook 2007 实习欺诈与MS Outlook 2007中 - - adobe acrobat file previewer 使用Adobe Acrobat文件previewer - - pdf reader for vista PDF阅读器对Vista - -