I am using Response.ContentType= "application/vnd.ms-word" to save a web form as word file - there are 2 things: 1 - it gives me the file name as werborm.aspx. Is there a way so that it comes up with a default name with .doc extension? 2- all my datagrid and
datalist tables show up in word format. Is there a way to get rid of those tables? Thanks!
JovSun
Member
445 Points
89 Posts
Response.ContentType= "application/vnd.ms-word"
Sep 18, 2003 06:48 PM|LINK
Michael.G.
Participant
1180 Points
236 Posts
Re: Response.ContentType= "application/vnd.ms-word"
Sep 19, 2003 11:35 AM|LINK
response.addheader("Content-Disposition", filename=yourfilename.doc")Or if you want that the a "Save as"-Dialog is appearing:response.addheader("Content-Disposition", "attachment; filename=yourfilename.doc")Webmaster of a small ISP :-)
All my code suggestions are and will be written in VB.net