开发者

How to Find and Close an open Office document via Office Automation

开发者 https://www.devze.com 2023-01-24 08:01 出处:网络
I have a program that will take the files in a directory and upload them to a server.If the file is a Word File, I would then like to detect if the file is open in word / excel etc.If it is 开发者_JAV

I have a program that will take the files in a directory and upload them to a server. If the file is a Word File, I would then like to detect if the file is open in word / excel etc. If it is 开发者_JAVA百科open, I would like to be able to then close it, in order to delete the local copy of the file.

Any ideas how to do this? The program responsible for the detection and closing of the documents is a win forms app.


Perhaps How to use Visual C# to automate a running instance of an Office program

0

精彩评论

暂无评论...
验证码 换一张
取 消