[SQL Server] A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 此憑證鏈結是由不受信任的授權單位發出的。)

錯誤訊息與解法 – Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 此憑證鏈結是由不受信任的授權單位發出的。)

...繼續閱讀 »

[NPOI 2.0] ASP.NET 輸出 Excel (.xlsx檔 2007格式) -- ASP.NET Export to Excel (.xlsx)

[NPOI 2.0] ASP.NET 輸出 Excel (.xlsx檔 2007格式) -- ASP.NET Export to Excel (.xlsx)

只要記住一點,就能初步升級--
命名空間 or 程式內,有HSSF字樣,就是產生 Excel 2003(含)以前的格式, .xls檔案
修正為 XSSF即可產生 .xlsx檔(Excel2 07(含)後續新版本的檔案)

...繼續閱讀 »