• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Popping up MS Word in my application

 
Swapna Chaubey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to pop up a Word document using my application.I tried it by changing the header info but it opens the Window with the SaveAs dialog box.
Now my requirement is that it should not display the SaveAs Dialog box instead it should directly pop up the Word window containing the rtf text.
Thanks
Swapna
 
ramkumar subbarao
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is not possible. It requires that the MS Word application be installed on the client machine and other configurations are also required. As you cant rely on the client to have these, you should look for a different approach. If you want to just display the contents of the file, i suggest you convert it into html and display it in the browser .
 
Swapna Chaubey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi RamKumar,
Thanks for that reply. Actually the Business Requirement could take care of the fact that the Client has Word installed.
My basic problem is to get rid of the Save As Dialog Box. Do u have any solutions for the same. If yes then what are the corresponding Client Side Configuration changes.
Thanks
Swapna
 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i understand you correctly, you also need to alter some of the features in the msword on the client machine. Hmmm...
I say you can't do that.
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be done but MS Word will be opened within a browser and will not have the tool bar that we normally see. You can do a search on this forum. There were plenty discussions here regarding the topic.
 
Swapna Chaubey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cameron,
Can u be a bit more specific about where exactly I should search for discussions regarding the same on this forum.
Thanks
Swapna
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18153
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just under the oval buttons on this page is a hyperlink captioned "search". click it and go from there. Try searching for "Content-disposition".
[This message has been edited by Tim Holloway (edited August 27, 2001).]
 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still don't understand what would be the purpose of doing that. Disabeling the print or ??? Someone help me understand.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18153
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Swapna is having a problem in that the goal is to have the user put in a request and have the response show up in a Word document ready to be viewed and/or edited. If the client machine's MIME setup isn't configured that way, instead of displaying the document, the browser will attempt to download it to a file.
That's what the Content-disposition header is for. It allows the server to suggest the preferred disposition of the returned data. It can be made to display what would otherwise be saved as a file or to save into a file what would otherwise be displayed on the screen.
 
Swapna Chaubey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will explain the exact purpose and may be then we can be more clear on the matter. The fact is that I have a button called Preview on my JSP which opens the concerned data to be popped up in a Word Window. Now this is what I wanna accomplish and this has to be accomplished without the Open/SaveAs Dialog box.
Thanks for the concern anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic