當我嘗試構建我的C#時遇到以下問題: 應用程序。我希望將數據導出到Office 2010或2007年。 錯誤是如下在C#2010中使用Excel 14.0 DLL獲取問題
Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046}
failed due to the following error: 80040154 Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
對於使用exceldatareader.codeplex.com出口到excel有一些替代的好的解決方案 –
你能提供一些代碼嗎?看來你忘了添加一些組件。 – akluth
可以顯示你的密碼嗎? – andy