Opening Word Documents
How do I open a word document programmatically from a button, (1) with no
Word prompts such as Save As, and (2) have it jump to a bookmark.
I have tried two ways: at the btnShowDocument_click event, I do the
following. This doesn't work at all, the document doesn't open, and I get a
prompt that says "This document contains one or more links to other files.
Do you want to update this document with the data from the linked files?" I
do have linked files, but I don't want the users to have to deal with that.
Response.ContentType = "Application/msword"
Response.ContentType = "text/HTML"
Response.Write("Document not found")
The second way is from a menu, with the script
ClientScripts="onclick:window.open('Help.doc'). This one at least opens the
document, but it still prompts them to update the links, and every time they
click on a link in the table of contents, it asks them if they want to save
changes -- what's that all about. And of course when they close it again
asks them if they want to save changes. I don't want all these prompts.
Thanks very much for your help.
|All times are GMT. The time now is 08:43 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.