This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exporting doc file

 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

iam trying to export .doc file,i have written following code,
response.setContentType("application/msword");
response.setHeader ("Content-Disposition", "attachment;filename=merlin.doc");

its asking me to open/save dialogue box,when i click on open button its opening in word document but its does't have any contents,wht could be the reason..

thanx
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you streaming a word file to the browser?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic