Wednesday, July 21, 2010

Internet Explorer programming brief (2)


Internet Explorer programming brief (b) embedded in IE, edit OLE document

In addition to open Internet on the web page, Internet Explorer also can browse local folders and documents. If you browse the PDF document or Office document, sometimes you will find when you call Navigate ("xxx.doc") when, Adobe Reader / Acrobat, or Office, etc. Document Servers embedded in IE to open an instance of their corresponding The document, of course, sometimes in a separate Acrobat window, or open Office files.

In Adobe Reader / Acrobat's property window, we can find the "Display PDF in browser" option, if the hook on the Navigate ("xxx.pdf") will be embedded in the way in IE to browse PDF documents otherwise in a separate Adobe Reader / Acrobat window view. However, in Office of the "Options" dialog box we can not find such a setting.



Question: How to control your own browser such Ole Servers Office's Open?

Answer: Modify the Folder Options, or to modify the registry.

Method 1, as follows, from the Control Panel, open the "folder" option in the "File Types" property page to find the corresponding file name suffixes, such as "DOC", click "Advanced" button in the pop-up on the "Edit File Types "dialog box with" Browse in same window "option, if the hook, with an undertone embedded in IE, open the document, or in a separate window.



Method 2, directly modify the registry.

In the "HKEY_LOCAL_MACHINESOFTWAREClasses" key, the preservation of a variety of file types registered information to Office documents, for example, the following key values associated with the document.

Document Type key

Microsoft Excel 7.0 worksheet Excel.Sheet.5

Microsoft Excel 97 worksheet Excel.Sheet.8

Microsoft Excel 2000 worksheet Excel.Sheet.8

Microsoft Word 7.0 document Word.Document.6

Microsoft Word 97 document Word.Document.8

Microsoft Word 2000 document Word.Document.8

Microsoft Project 98 project MSProject.Project.8

Microsoft PowerPoint 2000 document PowerPoint.Show.8

If we want to modify the Word document, open the way, in the "HKEY_LOCAL_MACHINESOFTWAREClassesWord.Document.8" under the new one called "BrowserFlags", type "REG_DWORD" sub-key, if you set the value "8", then separate window opens Word document in Word or in an embedded IE window to open the document.

Note: Microsoft Excel 7.0 worksheet is slightly different, the value should be set BrowserFlags "9" before they can open the document in a separate window.




References:

MSDN: 259970: In-Place Activating Document Servers in Internet Explorer

MSDN: 162059: How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Explorer









Recommended links:



LISTS Debugging



Christmas-Idea SWF Flash To DVD



realplayer h.264



WONDERSOFT Ripper Pack Platinum



To do with Akoff Music Composer MIDI Music (2)



Remove audio and video DRM protection



Premier XML Or CSS Tools



AVI converter to mp4



"Su Health" Simple completely RAIDERS



High-quality C + + / C Programming Guide - Chapter 3 naming



Convert avi to ipod



convert avi to WMV free download



Youtube FLV To Cell Phone Products