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