Tag: c# 2.0

查找在系统中创build了多less个excel对象

有没有办法获得在系统(taskmanager)中创build的Excel对象的计数? 我想要使​​用C#代码来计数,我使用的是C#版本2.0。 请帮忙。 提前致谢。

当使用剪贴板时,Spreadsheetgear错误

在我的应用程序中,我使用spreadsheetgear来处理Excel文件。 我使用下面的代码: //move incorrect to aux incorrectLine.Select(); //select the line to be moved wbkView.Cut(); auxLine.Select(); wbkView.Paste(); //move correct to incorrect correctLine.Select(); //select the line to be moved wbkView.Cut(); incorrectLine.Select(); wbkView.Paste(); //move aux to correct auxLine.Select(); //select the line to be moved wbkView.Cut(); correctLine.Select(); wbkView.Paste(); 我不时收到以下错误: Requested Clipboard operation did not succeed. 与StrackTrace: at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr) […]