在子线程上创建Excel数据透视表。 [英] Create Excel pivot table on a child thread.

查看:75
本文介绍了在子线程上创建Excel数据透视表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为报告生成的一部分,我们使用C#创建excel pivot代码( pivotcache.CreatePivotTable )。在创建数据透视的过程中,excel
进程被锁定且无法使用。

我们看到一些用户从数据库中检索到excel的数据,并且创建枢轴需要超过10分钟,在此期间excel会被锁定。 / span>

We are seeing for some users the data retrieval from database to excel and creating the pivot is taking more than 10 mins and during this time the excel gets locked .

从excel 2013开始工作簿在一个过程中托管,用户在此期间无法在不同的Excel工作簿上执行任何其他任务。

excel中有一种方法 我们可以执行代码来在后台线程上创建excel pivot而不是阻止excel。我们已经建议用户使用excel.exe
/ x,但要查找其他不同的方法。

推荐答案

您好Specularmonth365,

Hi Specularmonth365,

我会咨询我的同事这个问题,需要一些时间。非常感谢您的耐心。

I will consult my colleagues on this question, and it will take some time. Your patience will be greatly appreciated.

问候,

Jeffrey


这篇关于在子线程上创建Excel数据透视表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆