質問編集履歴

2

訂正:WorkbookFactory.Create(filePath, "", true); → WorkbookFactory.Create(filePath);

2021/04/20 04:39

投稿

masakifukuta
masakifukuta

スコア58

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  //既存ブック読み込み この後の保存にてエラーにて保存できない。
32
32
 
33
- var book = WorkbookFactory.Create(filePath, "", true);
33
+ var book = WorkbookFactory.Create(filePath);
34
34
 
35
35
 
36
36
 

1

訂正:FileMode.Create → FileMode.OpenOrCreate

2021/04/20 04:39

投稿

masakifukuta
masakifukuta

スコア58

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  //ブックを保存
44
44
 
45
- using (var fs = new FileStream(filePath, FileMode.Create))
45
+ using (var fs = new FileStream(filePath, FileMode.OpenOrCreate))
46
46
 
47
47
  {
48
48