webbrowser 不能打开office 2007文档,但可以打开office 2003文档
解决方法,修改注册表
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Word.Document.8]
"BrowserFlags"=dword:80000024
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Word.RTF.8]
"BrowserFlags"=dword:80000024
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Word.Document.12]
"BrowserFlags"=dword:80000024
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Word.DocumentMacroEnabled.12]
"BrowserFlags"=dword:80000024
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Excel.Sheet.8]
"BrowserFlags"=dword:80000A00
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Excel.Sheet.12]
"BrowserFlags"=dword:80000A00
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Excel.SheetMacroEnabled.12]
"BrowserFlags"=dword:80000A00
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Excel.SheetBinaryMacroEnabled.12]
"BrowserFlags"=dword:80000A00
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.Show.8]
"BrowserFlags"=dword:800000A0
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.Show.12]
"BrowserFlags"=dword:800000A0
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.ShowMacroEnabled.12]
"BrowserFlags"=dword:800000A0
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.SlideShow.8]
"BrowserFlags"=dword:800000A0
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.SlideShow.12]
"BrowserFlags"=dword:800000A0
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/PowerPoint.SlideShowMacroEnabled.12]
"BrowserFlags"=dword:800000A0
将以上文字保存在一个文本文件中,扩展名修改为.reg ,双击导入注册表,ok