0

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
Kara
  • 6,115
  • 16
  • 50
  • 57
mehdouch
  • 423
  • 1
  • 8
  • 20

1 Answers1

1

Have you seen DocX?

DocX is a .NET library that allows developers to manipulate Word 2007 files, in an easy and intuitive manor.

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!)

Rippo
  • 22,117
  • 14
  • 78
  • 117