来自 asp.net / vb 的带标题的 doc 文件
我想从包含页眉和页脚的 asp.net / vb (dotnet 1.1) 页面创建一个 doc 文件 (MS Word 2003)。 我已成功创建文档,但如何设置页眉和页脚?
还有其他解决办法吗?就像使用模板一样。
编辑:
我使用渲染功能:
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Functionality.RenderToFormat(divSection, "application/msword",
Functionality.GetPagePathUri(Request), "", "MyDoc.doc")
End Sub
I would like to create a doc file (MS Word 2003) from a page asp.net / vb (dotnet 1.1) that contains a header and footer.
I have managed to create the doc but how to set a header and a footer?
Is there any other solution? Like using template.
edit:
I user the Render function:
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Functionality.RenderToFormat(divSection, "application/msword",
Functionality.GetPagePathUri(Request), "", "MyDoc.doc")
End Sub
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看过 DocX 吗?
然而,我认为这不会在 .net 1.1 中工作(如果可能的话,你真的应该升级,因为 1.1 已经在 8 年前发布了!)
Have you seen DocX?
However I don't think this is going to work in .net 1.1 (you really should upgrade if possible as 1.1 was released 8 years ago!)