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