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
- Alternatives To Adobe Acrobat Reader替代的Adobe Acrobat Reader
- Preview C#, Visual Basic, and C++ Source Code files Direct in Attachments Without Opening預覽C #中, Visual Basic和C + +源代碼文件直接在附件沒有開放
- 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或他的一名插件可以處理。