问题描述
Hai,
我正在尝试使用webbrowser Control在Windows窗体中显示Excel文档。
使用在Codeproject中搜索的代码 []我能够在webbrowser控件中正确地将32位操作系统中的文件(.xls和.xlsx)显示出来。
但是当我试图在64位操作系统中执行代码.xlsx类型的Excel文件没有在webbrowser控件中打开而是打开它们作为正常的excel文件但是.xls文件打开正确地在webbrowser控件中。
为此我执行了注册脚本以使用以下链接更改注册表设置 []
但.xlsx文件总是像Office excel文件一样单独打开,而不是在webbrowser控件中打开它。
目前我使用Microsoft Office 2010软件作为我的办公工具。
请提供打开.xlsx文件的解决方案在webbrowser控件中打开。
谢谢。
Hai,
I am trying to display the Excel document in windows forms using the webbrowser Control.
using the code googled in Codeproject How to Integrate Excel in a Windows Form Application using the WebBrowser[^] and i am able to disaply excel(.xls and .xlsx) files in 32 bit Operating System correctly in webbrowser control.
But when i trying to execute the code in 64-bit operating system .xlsx type Excel files didn''t open in webbrowser Control instead they were opening as normal excel file but .xls files opening correctly in webbrowser Control.
For that i executed the register Script to change the registry settings using the below link http://support.microsoft.com/kb/927009[^]
but .xlsx files always Open separately as like Office excel file instead of opening it in webbrowser Controls.
Presently i am using Microsoft Office 2010 software as my office tool.
Please provide the solution to open the .xlsx files to be open in webbrowser control.
Thank you.
推荐答案
这篇关于如何使用C#在嵌入的Winforms控件中打开Excel文档(.xlsx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!