質問編集履歴

2

追加

2016/08/24 02:54

投稿

pro-poke5
pro-poke5

スコア46

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,71 @@
61
61
  アドバイスいただけますとうれしいです
62
62
 
63
63
  よろしくお願いいたします。
64
+
65
+
66
+
67
+ 追記
68
+
69
+ ありがとうございます。
70
+
71
+ ソースを下のように変更したのですがうまくいきません…
72
+
73
+ 何が原因でしょうか・・・?すみません。
74
+
75
+ ```C#
76
+
77
+
78
+
79
+
80
+
81
+ public void makeHtml(string alertKey,string fileName)
82
+
83
+ {
84
+
85
+ //テキストファイルを作成
86
+
87
+ System.IO.StreamWriter sw = new System.IO.StreamWriter(
88
+
89
+ @"C:\test\fileName.html",
90
+
91
+ false,
92
+
93
+ System.Text.Encoding.GetEncoding("shift_jis"));
94
+
95
+
96
+
97
+
98
+
99
+ WeatherHtmlSystem whs = new WeatherHtmlSystem();
100
+
101
+
102
+
103
+ string tblname = "test";
104
+
105
+
106
+
107
+ using (DataSet ds = whs.GetTestList(tblname,alertKey))
108
+
109
+ { ..................................
110
+
111
+
112
+
113
+
114
+
115
+ ↓もう1つのファイルです↓
116
+
117
+
118
+
119
+ public DataSet GetTestList(string strTableName,string alert_key,string fileName)←追加しました
120
+
121
+ {
122
+
123
+ DBAccess dba = new DBAccess();
124
+
125
+ DataSet ds = new DataSet();
126
+
127
+
128
+
129
+ StringBuilder sql = new StringBuilder()............................
130
+
131
+ ```

1

goji

2016/08/24 02:54

投稿

pro-poke5
pro-poke5

スコア46

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- vs2016
5
+ vs2010
6
6
 
7
7
  .NetFramework4.6
8
8