When using C # To call the COM component to operate on Excel, other programs are prohibited from performing operations on this file.

Source: Internet
Author: User

In the process of calling the COM component in a WinForm program to operate an existing Excel file, if the process is long, for example, it takes 20 minutes, if you click the Excel file manually, the file can still be opened, but an error will be reported in the WinForm program. The current business requirement is that when you call the COM component to operate an Excel file, double-clicking the Excel file will prompt that the file is being used. If a process opens all the Excel files, no prompt is displayed and an error is reported. If multiple processes open an Excel file, the following prompt is displayed. This varies depending on the settings of the Excel program on your computer.

Related Article

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.