调用Microsoft.Office.Interop.Excel.Workbook.ExportAsFixedFormat()时隐藏进度对话框 [英] Hide progress dialogue when calling Microsoft.Office.Interop.Excel.Workbook.ExportAsFixedFormat()

查看:640
本文介绍了调用Microsoft.Office.Interop.Excel.Workbook.ExportAsFixedFormat()时隐藏进度对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以隐藏进度拨号,否则会显示进度拨号这个方法叫做。该对话标题为" Publishing ..."并包含一个简单的进度条和一个取消按钮。
我希望我的代码作为服务运行,因此想要删除任何UI。我已设置
< span style ="font-family:Consolas; color:#2b91af; font-size:x-small"> < span style ="font-family:Consolas; color:#2b91af; font-size:x-small">应用程序 .Visible
=
false

应用 .Di splayAlerts =
false 。谢谢。



 





解决方案


嗨SeligDrahcir,



 



如果您想将您的应用程序作为服务运行,您应首先查看此文档:



如何:创建Windows服务



 



Application.Visiable = false& Application.DisplayAlerts = false只是让应用程序在后台而不是服务上运行。



 



此外,
Microsoft不建议或支持服务器端的Office自动化。



http://support.microsoft.com/kb/257757



 



我希望这会有所帮助。



Is it possible to hide the progress dialoge which is otherwise displayed when  this method is called. The dialogue is titled "Publishing..." and contains a simple progress bar and a cancel button. I want my code to run as a service and hence want to remove any UI. I've already set Application.Visible = false and Application.DisplayAlerts = false. Thanks.

 

解决方案

Hi SeligDrahcir,

 

If you want to run your application as a service, you should have a look at this document first:

How to: Create Windows Services

 

Application.Visiable=false & Application.DisplayAlerts=false just make the application works on background rather than service.

 

Moreover, Microsoft does not recommend or support server-side Automation of Office.

http://support.microsoft.com/kb/257757

 

I hope this helps.


这篇关于调用Microsoft.Office.Interop.Excel.Workbook.ExportAsFixedFormat()时隐藏进度对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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