Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 4.0 工作线程中的Office Interop Excel?_C# 4.0_Office Interop - Fatal编程技术网

C# 4.0 工作线程中的Office Interop Excel?

C# 4.0 工作线程中的Office Interop Excel?,c#-4.0,office-interop,C# 4.0,Office Interop,我正在使用Office Interop将数据从C#应用程序导出到Excel文件。一切正常,但出口可能相当大,需要一些时间才能完成。我在web和MSDN上搜索过,但没有找到太多关于在线程中运行互操作调用的内容。有什么理由我不应该将导出到Excel功能放在后台工作线程中吗?只要您只从一个线程调用Excel应用程序,我不认为您会有任何问题。我已经编写了一个应用程序,它以与您描述的相同的方式在后台工作线程上自动运行Excel。谢谢Chris。这个问题已经提得够多了,我想如果有人知道可怕的问题,他们现在就

我正在使用Office Interop将数据从C#应用程序导出到Excel文件。一切正常,但出口可能相当大,需要一些时间才能完成。我在web和MSDN上搜索过,但没有找到太多关于在线程中运行互操作调用的内容。有什么理由我不应该将导出到Excel功能放在后台工作线程中吗?

只要您只从一个线程调用Excel应用程序,我不认为您会有任何问题。我已经编写了一个应用程序,它以与您描述的相同的方式在后台工作线程上自动运行Excel。

谢谢Chris。这个问题已经提得够多了,我想如果有人知道可怕的问题,他们现在就会发表评论了。