Solved

Open Microsoft Word in its own window from Mozilla browser

Posted on 2003-11-15
5
1,257 Views
Last Modified: 2012-08-13
we're using the mozilla browser in an intranet application.
the application needs to open microsoft word so that it can run a macro.

since we can't use activex objects to directly open the word document-
we found a way around it:

on our html page, we have a print button;
when this print button is pressed, we want to open microsoft word, in its own instance.
right now, word opens inline, inside the browser-
we do this with the following code:
we check in our event handler when the print button is pressed;
and then, we refresh the page, draw the html again, and change the url address to the path of our word document.

My question is this-
Is there a way that we can open microsoft word in its own window, instead of the way we are opening the instance now?

Thanks in Advance
John
----------------------------------------------------------------------
    if (!strcmp(evt_fld,"Print"))
        strcat(head,
            "<meta http-equiv=\"Refresh\""
            " content=\"0;URL=http://wamdev/sms/macros/mozilla_test.doc\">\n");

--------------------------------------------------------------------
0
Comment
Question by:jtrapat1
  • 2
  • 2
5 Comments
 
LVL 49

Accepted Solution

by:
sunray_2003 earned 125 total points
ID: 9756676
Not sure if this will work

This used to solve issue with opening word in its own window from IE

Try


go to my computer
go to tools
go to folder options
go to file types
scroll down to doc file or any file you want to open this way

click on advance

and disable

a) confirm open after download
b) Browse in same window


Sunray
0
 
LVL 2

Expert Comment

by:rootkiddy
ID: 9767105
Are you wanting to open the document without the it being inlined or just in its on window?
0
 

Author Comment

by:jtrapat1
ID: 9767222
rootkiddy,

I would like to open the document in its own window, if this is possible.


Thanks
John
0
 
LVL 2

Expert Comment

by:rootkiddy
ID: 9767756
Not sure if this is what you are looking for but basically you could use the link and specificy a target such as the example below (hoping this gets treated as test).

<a href="http://www.whatever.com/myword.doc" target="_blank">open file</a>
0
 

Author Comment

by:jtrapat1
ID: 9779968
I tried the following code in mozilla and it's close to working correctly:
----------------------------------------------------------------------
    if (!strcmp(evt_fld,"Print"))
        strcat(head,
            "<meta http-equiv=\"Refresh\""
            " content=\"0;URL=http://wamdev/sms/approved-letters/HOU/test.doc\">\n");

--------------------------------------------------------------------
I have a small problem in mozilla:
I can open this document on the client machine;
but when it opens, it opens in the user's temp directory.
This is fine; but if the same document is opened more than once,
an number extension is added to the word document and this number accumulates.
For example, the first time the document opens, the document is called test.doc;
the second time, it's named test-1.doc; t
the third time, it's named test-2.doc, etc.

My question is this:
Is there any way to avoid this numbering scheme?
Or, is there a way to clean up after filling up the users' temp directory?

Thanks in Advance
John  
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question