Re: Open Word document through Iframe
- From: "S.M. Altaf [MVP]" <smaltaf@xxxxxxxxxxxxx>
- Date: Thu, 1 May 2008 20:22:23 +0100
The file is getting to your machine just fine. It's how your browsers are handling it that's your problem. Some browsers/machines may be configured to use the MS Word plugin to display the DOC file and some aren't. Those that aren't will obviously (and helpfully) prompt the user to save/open/cancel.
Go to file types in Windows Explorer, DOC, Advanced. You should see the advanced edit file type dialog box, there should be a checkbox there that says "Display file in same window" or something similar. That should get your DOC files displaying within the browser.
--
---------------------------------------------------
S.M. Altaf [MVP]
http://www.mendhak.com/
"Peter" <czupet@xxxxxxxxxxxxx> wrote in message news:OThyq77qIHA.3568@xxxxxxxxxxxxxxxxxxxxxxx
I get "Open", "Save","Cancel" dialog box.
and if I click on "Open" the prompt just disappears and the document does not display. If I look at the task manger the WINWORD.EXE is one of the processes. If I close the webpage WINDWORD disaplears from the processes.
"S.M. Altaf [MVP]" <smaltaf@xxxxxxxxxxxxx> wrote in message news:C2A3E4C0-7FC4-4B0A-8C91-236E3639C6FF@xxxxxxxxxxxxxxxxWhat do you mean by "loads into memory but never displays"? Are you getting a download prompt on some machines instead of the .doc file being displayed?
--
---------------------------------------------------
S.M. Altaf [MVP]
http://www.mendhak.com/
"Peter" <czupet@xxxxxxxxxxxxx> wrote in message news:e0bPiS7qIHA.2492@xxxxxxxxxxxxxxxxxxxxxxxI have the following code which is executed from a modal web page - it works fine on most, but on some computers the Word loads into memory but never displays. This occurs with IE6 and IE7, but always works on FireFox.
When I close the modal web page Word disappears from Memory.
I don't know where the problem is, my code, IE setup or intranet security, I also do not know where and for what to look for - I've tried Google but I don't know what to look for so I am getting millions of hits.
I any ideas will be appreciated.
(I get same results with Excel as with Word)
string officeDocScript = "<div>"
+ "<iframe width=\"75%\" height=\"55%\" name=\"fframe\" src=\"" + filePath + "\">"
+ "<frame width=\"75%\" height=\"55%\" name=\"fframe\" src=\"" + filePath + "\">"
+ "<embed src=\"" + filePath + "\">"
+ "</iframe></div>";
- Follow-Ups:
- Re: Open Word document through Iframe
- From: Peter
- Re: Open Word document through Iframe
- References:
- Open Word document through Iframe
- From: Peter
- Re: Open Word document through Iframe
- From: S.M. Altaf [MVP]
- Re: Open Word document through Iframe
- From: Peter
- Open Word document through Iframe
- Prev by Date: Strange Linq Problem
- Next by Date: Re: GridView and TemplateField Help
- Previous by thread: Re: Open Word document through Iframe
- Next by thread: Re: Open Word document through Iframe
- Index(es):
Relevant Pages
|