473,795 Members | 2,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Word document through Iframe

I 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>";
Jun 27 '08 #1
7 6796
What 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" <cz****@nospam. nospamwrote in message
news:e0******** ******@TK2MSFTN GP06.phx.gbl...
I 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>";

Jun 27 '08 #2
I get "Open", "Save","Can cel" 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]" <sm*****@mNOSPA Msn.comwrote in message
news:C2******** *************** ***********@mic rosoft.com...
What 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" <cz****@nospam. nospamwrote in message
news:e0******** ******@TK2MSFTN GP06.phx.gbl...
>I 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>";


Jun 27 '08 #3
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" <cz****@nospam. nospamwrote in message
news:OT******** ******@TK2MSFTN GP04.phx.gbl...
I get "Open", "Save","Can cel" 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]" <sm*****@mNOSPA Msn.comwrote in message
news:C2******** *************** ***********@mic rosoft.com...
>What 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" <cz****@nospam. nospamwrote in message
news:e0******* *******@TK2MSFT NGP06.phx.gbl.. .
>>I 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>";


Jun 27 '08 #4
Actualy the documents are RTF format, but registerd to Word.
When I look at the Advanced properties the "Brows in the same window" is
disabled. It's disabled on the system that does not work and it's disabled
on the system that works.

"S.M. Altaf [MVP]" <sm*****@mNOSPA Msn.comwrote in message
news:CC******** *************** ***********@mic rosoft.com...
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" <cz****@nospam. nospamwrote in message
news:OT******** ******@TK2MSFTN GP04.phx.gbl...
>I get "Open", "Save","Can cel" 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]" <sm*****@mNOSPA Msn.comwrote in message
news:C2******* *************** ************@mi crosoft.com...
>>What 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" <cz****@nospam. nospamwrote in message
news:e0****** ********@TK2MSF TNGP06.phx.gbl. ..
I 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>";



Jun 27 '08 #5
That's probably not it, but why you got a <frametag inside the iframe??

I see that it's not even closed, so it's possible that WORD is being loaded
into the invisible frame and the other frame is prompting you to download on
the other systems. That would be why nothing opens when click "Open" on the
download dialog, because there's already an instance of WORD loaded on the
invisible frame.

"Peter" <cz****@nospam. nospamwrote in message
news:e0******** ******@TK2MSFTN GP06.phx.gbl...
>I 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>";


Jun 27 '08 #6
Hi Peter,

is this problem the same with the former modal dialog one or another
separate issue within the same application? It seems this problem is quite
client-side specific and occurs sporadically which makes the
troubleshooting rather difficult.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Peter" <cz****@nospam. nospam>
References: <e0************ **@TK2MSFTNGP06 .phx.gbl>
<C2************ *************** *******@microso ft.com>
>Subject: Re: Open Word document through Iframe
Date: Thu, 1 May 2008 14:09:42 -0500
I get "Open", "Save","Can cel" 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]" <sm*****@mNOSPA Msn.comwrote in message
news:C2******* *************** ************@mi crosoft.com...
>What 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" <cz****@nospam. nospamwrote in message
news:e0******* *******@TK2MSFT NGP06.phx.gbl.. .
>>I 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>";



Jun 27 '08 #7
It was registry problem on client side, I just don't know why it works with
FireFox but not IE

Here's the registry fix:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Word.Docu ment.8]
@="Microsoft Office Word 97 - 2003 Document"
BrowserFlags"=d word:00000008
[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Excel.She et.8]
@="Microsoft Excel Worksheet"
"BrowserFlags"= dword:00000008
"Fernando Rodriguez" <fr********@mcp .microsoft.comw rote in message
news:ON******** ********@TK2MSF TNGP03.phx.gbl. ..
That's probably not it, but why you got a <frametag inside the iframe??

I see that it's not even closed, so it's possible that WORD is being
loaded into the invisible frame and the other frame is prompting you to
download on the other systems. That would be why nothing opens when click
"Open" on the download dialog, because there's already an instance of WORD
loaded on the invisible frame.

"Peter" <cz****@nospam. nospamwrote in message
news:e0******** ******@TK2MSFTN GP06.phx.gbl...
>>I 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>";



Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8795
by: William Starr Moake | last post by:
Another problem with the browser-based WYSIWYG editor I'm trying to assemble using IE's design mode. This opens the selected page in the editor iframe named iView: <select name="template" onChange="window.open(this.options.value,'iView')"> <option>TEMPLATES</option> <option value="template1.htm">Template 1</option> <option value="template2.htm">Template 2</option>
2
4738
by: Todd | last post by:
Ok, this code works fine on the Web server machine. But when I try to run it via any other clients on the LAN, I keep getting scripting errors (the MS Word Document never opens.) Do I have to configure the server somehow to allow it to share this MS Word doc? <SCRIPT LANGUAGE=VBScript> Dim objWord Sub Btn1_onclick() call OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
6
6769
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling about the ability. If not, what advice can u provide? thank you in advance. ur help will be appreaciated.
18
3350
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I run the code on my local computer but I do have it when I run the code on geocities.
1
3019
by: Vikas Kumar | last post by:
how to open word document and pdf file in aspx page
7
3612
exoskeleton
by: exoskeleton | last post by:
hi guys..hope you can help me...my boss want me to edit our website and apply the tooltip thing, i mean the moving tooltip that follows the mouse.. please help...thank you... :(
1
3144
by: helraizer1 | last post by:
Hi Folks, Using just client side languages.. how can I embed a word document in the browser, without it opening externally in MS Word? at the moment I'm using iframe with the src as the document, but it opens it externally, which defeats the objective, really. <iframe src='./HTML/Project_Plan.doc' width='100%' height='700'></iframe> How can I do this?
7
4020
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.