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 - - vista pdf viewer Vista的PDF瀏覽器 - - pdf reader vista PDF閱讀器Vista的 - - office pdf previewer 辦公室的PDF previewer - - pdf viewer office 2007 PDF瀏覽器的Office 2007 - - office previewers 辦公室previewers - - foxit vista foxit Vista的 - - vista pdf reader Vista的PDF閱讀器 - - office 2007 key reader Office 2007的關鍵讀者 - - outlook 2007 file previewer Outlook 2007中的檔案previewer - - pdf preview handler for vista x64 PDF格式預覽處理對Vista x64 - - 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中 - - office 2007 pdf reader Office 2007的PDF閱讀器 - - 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 - -