docx をネットワーク パスに保存するためにcodeplexを使用しました。
しかし、断続的にこの dll の SaveAs(string path) 関数が失敗します。
関数に提供されるパスは期待どおりです。
前もって感謝します。
This is the code I use to create and download docx document:
DocX g_document;
g_document = WhitePageReport(dt, dtSub);
MemoryStream ms = new MemoryStream();
g_document.SaveAs(ms);
Response.Clear();
Response.AddHeader("content-disposition", "attachment; filename=\"WhitePageReport.doc\"");
Response.ContentType = "application/msword";
ms.WriteTo(Response.OutputStream);
Response.End();