Click to See Complete Forum and Search --> : Word Doc Formatting - C#, Asp.net


kvrao
February 10th, 2005, 05:55 AM
Hi,
I am displaying the information from my asp.net page on a word document.
These code lines are doing it for me...

Response.AddHeader("Content-Disposition", "attachment; filename= MYQuoteReport.doc");
Response.ContentType = "application/vnd.ms-word";

But, the problem is, it opens on a simple word doc "MYQuoteReport.doc" in WEB LAYOUT (default); where as I want it to be in PRINT LAYOUT. i.e., a splitup of pages, along with My CompanyLOGO & Header footer information (which I have already stored in Database.) on each page.

Any suggestions at the earliest will be a Great Help...
Thanks
-Venk.