Excel匯出後內容是空的

Zone.identifier

由於某些公司需求再加上我很懶惰...

所以我直接使用HTML Table轉成Excel來讓人可以下載匯出的檔案.....

可這幾天突然....發生檔案下載後打開是空的!!

如下圖 ↓↓↓↓↓↓↓↓↓

一開始我驚呆了...後來把檔案丟回server在直接拿回來就開得出東西了...

仔細審查後發現原來是前陣子微軟某項更新造成的...

解決的方法就是對檔案按右鍵=>選取內容=>再按一下解除封鎖 檔案就打得開了

真是讓我驚呆了!!!

不過這東西也是有其他方法可以規避的...

例如...請使用NPOI

或是使用某些第3方元件

我想你只要在Google搜尋上打上 Zone.identifier 應該就可以找到你要的東西了!!

We all change, when you think about it, we're all different people; all through our lives, and that's okay, that's good, you've gotta keep moving, so long as you remember all the people that you used to be. I will not forget one line of this, not one day, I swear.