Solved

Open Microsoft Word in its own window from Mozilla browser

Posted on 2003-11-15
5
1,256 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now