C # generates Excel to other computers generate report times wrong

Source: Internet
Author: User

  

  Error : No error occurred during native compilation and the program was able to execute. Copy out the compiler and some of the required DLL files on the other machine, the following error occurred
System.InvalidCastException:Unable to cast COM object of type ' Microsoft.Office.Interop.Excel.ApplicationClass ' to Interface type ' microsoft.office.interop.excel._application '. This operation failed because the QueryInterface of the COM component for the interface with IID ' {000208d5-0000-0000 -c000-000000000046} ' failed due to the following error: This interface is not supported (Exception from hresult:0x80004002 (e_nointerface)).

  

  Solution: may be the error of the computer Office software does not match, then downloaded the more commonly used WPS installed, re-run to generate Excel successfully.

This is the Win64 bit system running on 3 computers, if the Win32 bit may occur other problems, follow up.

C # generates Excel to other computers generate report times wrong

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.