<% ' ' ' %> <% main() Sub main() Dim Query Dim Content Dim Content2 Dim CSVOutput CSVOutput = Request("CSVOutput") CSVOutput = Replace("" & CSVOutput, "kaigyooygiakaigyooygiakaigyooygiakaigyooygiak", vbCrLf) 'ファイル名 Dim FileName FileName = "仕訳帳(自動).csv" 'ダウンロードダイアログを開く Response.Expires = 0 Response.Buffer = TRUE Response.Clear Response.Charset = "shift_jis" Response.ContentType = "application/download; name=" & FileName Response.AddHeader "Content-Disposition", "attachment; filename=" & FileName Response.AddHeader "Content-Disposition", "inline; filename=" & FileName Response.Write CSVOutput Response.End End Sub %>