[C #] after the Office application is called, the program will not exit.

Source: Internet
Author: User

I have been using editing to operate Office products, and I will certainly have a similar problem. Especially when using. net for development.
Environment:
A c #. net service program (the same is true for an application)
An excel file to be processed
Purpose:
C # operating Excel files
Symptoms:
In the process manager, you can find that when your application has completed the Excel operation, but the Excel process is still active.
That is to say, the application does not fundamentally release Office resources.

If you are the same as me, read the knowledge base document in workshop!

Use the Visual Studio. NET client to run the automation function without exiting the Office application.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.