Pankaj Pant

Pankaj Pant

  • NA
  • 71
  • 0

Export web page to word doc

Mar 19 2009 3:05 AM

Hi,

I want to export all the data to a word doc. All data means all textual data as well as images. Following is my code:

response.ClearHeaders();

response.AppendHeader("Content-disposition",

"attachment;filename=HelloWorld.doc");

response.ContentType = "application/msword";

wordDocument.SaveToStream(response.OutputStream);

response.End();

My problem, textual data is exported but images and css did not export. So how to export images too to .doc file.

Pankaj Pant

 

 

 


Answers (2)