creating a word document

  • Thread starter Thread starter Freddy
  • Start date Start date
F

Freddy

I am trying to create a word document using asp.net through a web site.
Can anyone point me to any sample code available online.

Thanks
 
Hi Steve,

Thanks for the link. The article was excellent

I am using a wordCreate.aspx page's Page_Load function to get the results
out of a database table and added these results to the literal control. Then
I added the follwoing two lines.

Response.ContentType = "application/ms-word"
Response.AddHeader("Content-Disposition", "inline;filename=test.doc")

When I open wordCreate.aspx in a popup window it is working fine. Word
document is created. But when I close this window I am getting a Connect to
the development server alert asking for username and password. Is there any
way to avoid getting this alert.

Thanks,

Freddy
 
Back
Top