このコードを含むPDFファイルを返すaspxページがあります。
HttpContext.Current.Response.Clear()
HttpContext.Current.Response.ContentType = "application/pdf"
HttpContext.Current.Response.AddHeader("Content-disposition", "attachment; filename=Order-" & Request("OrderNo") & ".pdf")
HttpContext.Current.Response.BinaryWrite(pdfContent)
HttpContext.Current.Response.End()
ファイルをサーバーのハードドライブに保存するには、コードにどのような変更を加える必要がありますか?BinaryWriteを別のものに置き換える必要があると思いますが、何ですか?
助けてくれてとても感謝しています!