问题描述
嗨!
我正在尝试构建与MS Excel 2007交互的自定义工作流活动.
我编写了以下代码来创建和显示excel应用程序.
Excel._Application excelApp =新的Excel.ApplicationClass();
Excel.Workbooks工作簿= excelApp.Workbooks;
excelApp.SheetsInNewWorkbook = 1;
Excel.工作簿工作簿= workbooks.Add(missing);
excelApp.Visible = true;
但是应用程序仍然不可见.在调试代码时,我发现"excelApp.Visible"仍然等于假".
我应该怎么做才能在Excel中显示工作簿?
谢谢
Hi!
I'm trying to build a custom workflow activity that interact with MS Excel 2007.
I wrote a following code to create and show an excel application.
Excel._Application excelApp = new Excel.ApplicationClass();
Excel.Workbooks workbooks = excelApp.Workbooks;
excelApp.SheetsInNewWorkbook = 1;
Excel.Workbook workbook = workbooks.Add(missing);
excelApp.Visible = true;
But application is not still visible. When I'm debugging my code I find that "excelApp.Visible" still equals "false".
What should I do to show Workbook in Excel?
Thanks
推荐答案
这篇关于与MS Excel 2007交互的工作流活动中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!