workbook.Options.Export.Csv.WritePreamble = true;
一般workbook.SaveDocument(filepath)存檔寫法改成workbook.SaveDocument(filepath, DocumentFormat.Csv);
這樣就能直接輸出csv了~
workbook.Options.Export.Csv.WritePreamble = true;
一般workbook.SaveDocument(filepath)存檔寫法改成workbook.SaveDocument(filepath, DocumentFormat.Csv);
這樣就能直接輸出csv了~
Copyright © John Coding 技術筆記 | Powered by Blogger
Design by Anders Noren | Blogger Theme by NewBloggerThemes.com
0 意見:
張貼留言