質問編集履歴
1
usingなど追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,6 +23,36 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
|
+
|
27
|
+
using System;
|
28
|
+
|
29
|
+
using System.Collections.Generic;
|
30
|
+
|
31
|
+
using System.Windows;
|
32
|
+
|
33
|
+
using Excel = Microsoft.Office.Interop.Excel;
|
34
|
+
|
35
|
+
using System.Runtime.InteropServices;
|
36
|
+
|
37
|
+
using System.IO;
|
38
|
+
|
39
|
+
using NPOI.SS.UserModel;
|
40
|
+
|
41
|
+
using System.Windows.Documents;
|
42
|
+
|
43
|
+
using System.Linq;
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
Excel.Application ExcelApp = null;
|
48
|
+
|
49
|
+
Excel.Workbooks workbooks = null;
|
50
|
+
|
51
|
+
Excel.Workbook wb = null;
|
52
|
+
|
53
|
+
Excel.Sheets sheets = null;
|
54
|
+
|
55
|
+
Excel.Worksheet ws = null;
|
26
56
|
|
27
57
|
|
28
58
|
|
@@ -54,6 +84,8 @@
|
|
54
84
|
|
55
85
|
wb.Worksheets.Add(After: sheets);
|
56
86
|
|
87
|
+
ここでエラーが生じます
|
88
|
+
|
57
89
|
|
58
90
|
|
59
91
|
|