Excel 2013中的SetParent API问题 [英] Problem with SetParent API in Excel 2013
问题描述
我们的应用程序广泛使用Excel来操作/加载数据。我们以一种形式(使用SetParent win API)嵌入excel工作簿并将其显示给用户。一切正常,直到Excel 2010,但最近更新到Excel 2013时,代码
命中SetParent()函数Excel崩溃。有什么办法可以让SetParent函数与Excel 2013一起使用吗?或者将Excel嵌入Win Form的任何其他方法。
任何帮助非常感谢。
Thanks
Rajesh Yesurajan
感谢您的回复。
我的问题是在t之后他将setParent()方法的excel应用程序类对象变为空。
Ex: excelApp.ActiveWindow.DisplayHorizontalScrollBar = true;
此处,
" excelApp.ActiveWindow"正在变为空。
注意:在excel版本2010中,它正在工作
Hi,
Our application extensively uses Excel for manipulating/loading data. we embed excel workbook with in a form (using SetParent win API) and show it to the user. Everything works fine till Excel 2010 but with the recent update to Excel 2013 when ever the code hits the SetParent() function Excel crashes. Is there any way i can get the SetParent function work with Excel 2013 ? or any other approach to embed Excel into a Win Form.
Any help is highly appreciated.
Thanks
Rajesh Yesurajan
Thanks for your reply.
My issue is after the setParent() method the excel application class object becoming null.
Ex: excelApp.ActiveWindow.DisplayHorizontalScrollBar = true;
Here ,
"excelApp.ActiveWindow" is becoming null.
Note:In excel version 2010 its working
这篇关于Excel 2013中的SetParent API问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!