Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Opening docs from a browser (WinNT/Word97)

    We use Word 97 and Internet Explorer 5, and some of the links in our intranet simply open Word documents. One of the documents is a form, and elsewhere it is a template that opens a userform when it is run. Since templates won't run when opened through a browser link, we have tried turning it into a normal document with a document_open sub, but again it works perfectly elsewhere and not from the browser.

    Has anyone found a way to have something happen automatically when a document/template is opened/run from a browser link? And no, upgrading the browser (or office, for that matter) is not an option, unfortunately.

    Any help would be greatly appreciated!
    Beryl M


  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    This can be reesolved by changing an option from within Explorer:

    - Open Windows Explorer
    - Tools, Folder Options, FileTypes Tab
    - Find those assicated with Word (or XL). Select them, press Edit. Now uncheck the "Browse in same window" option.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Thanks, Jan, but that wasn't quite what I meant; the documents open in a Word window OK, it's just that nothing set to fire automatically on opening a document/running a template will fire!

    If I run a template normally, through File, New in Word or double-clicking on it in Windows Explorer, the sub 'document_new' runs immediately; similarly on opening a document through Word or WinEx, the sub 'document_open' runs immediately.

    However, if I do either through a link in IE although the document or template opens, the subs don't run. <img src=/S/confused.gif border=0 alt=confused width=15 height=20> <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23>
    Beryl M


  4. #4
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    OK, sorry.

    BTW: I'll ask the Mod to move this thread to the Word section.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  5. #5
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Oops, sorry <img src=/S/woops.gif border=0 alt=woops width=58 height=36> - I was thinking about an XL problem when I posted the question and it must have affected the forum I chose!

    Apologies!
    Beryl M


  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    You might read Bjorn's threads on SharePoint, which integrates with IE and therefore raises the same issues.

  7. #7
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Hi BerylM

    I have read jsher2000's comment and I can only tell you that I haven't solved the problem. I have put this problem on to a SharePoint (a DMS/Browser) Newsgroup without geting a good solution. But I'm working on it. What is disappointing is that it looks like Microsoft do not have any good solution to this problem.

    So far I have solved this by a "special" way:

    In the document I place a custom property which will be stored with the path and filename of the particular document. Opening the document through IE always gives the document the name: "Document in Microsoft Internet Explorer". This I take advantage of in my code. The clue is to intercept the FileSaveAs procedure and put the code which collects the "real" document using the value of the custom property and then the Document_Open macro runs.

    Hope this helps. I'm not in office to day and can't give you my code of how I have solved it. If you need it I can send it on monday.

    regards
    Bjorn

  8. #8
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    The way I solved a related problem in CHM files was to hyperlink to a shortcut instead of directly to the file. When I choose a template to point at I add the /n switch to the shortcut so that a new file is created with the template attached rather than opening the template itself.

    Would this method do the job for you here?

    I hold out a vain hope that a vbscript would do the job but I haven't tried that path yet as the shortcut method seems to work just fine for my problem.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  9. #9
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Hi Andrew, thanks for the comment, which looks promising. However, when I do this I just get a blank browser window!

    My shortcut says: C:apps32bitmsofficeOfficeWINWORD.EXE "O:COMMONBANKINFOBANKFILEStaffIDEA.dot" /n - which I understood to be what is needed - and the link is targeted on "_top" - am I missing something here?

    <img src=/S/confused.gif border=0 alt=confused width=15 height=20>
    Beryl M


  10. #10
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Beryl

    What if the link excludes the path the Word (the file association should take care of that) and the shortcut looks like

    "ServerNameBidToolsBidding ToolkitBid Configuration.dot" /n

    I would also recommend including the server name - in case others don't map their drives in the same way as you.

    Do you need to go anywhere other than the top of the file once it is opened?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  11. #11
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    All good suggestions, Andrew but

    - the address is that of our intranet server and is identical for everybody (in fact it wouldn't find it at all if I put it in differently!)
    - I have tried putting just the doc path and switch, it didn't behave any differently, and
    - no, the doc just needs to open at the top, but it has to run a userform to fill in on opening (or running, where it's a template)

    I don't suppose you have any more good ideas, do you? I've a horrible feeling it's not going to work until we upgrade our browser ...

    <img src=/S/sigh.gif border=0 alt=sigh width=15 height=15> <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    Beryl M


  12. #12
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Beryl

    Does the shortcut work correctly if you click it in Windows Explorer? If so...

    I am guessing here at a gotcha - The hyperlink to the shortcut has to include the full shortcut name - which includes an invisible .lnk at the end. You can see this in a DOS dir listing but you won't see it in Windows Explorer.

    Can you post the html code where the link is defined?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  13. #13
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    What makes you think a browser update will help?

    See <post#=230517>post 230517</post#> in one of the threads I suggested consulting previously.

  14. #14
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Just hoping, I guess!
    Beryl M


  15. #15
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Opening docs from a browser (WinNT/Word97)

    Do you want the good news or the bad news?!

    Yes, the link does work fine from Windows Explorer - and in fact it does work when I add the '.lnk' to the shortcut name in the html, which now looks like this:

    Initiative Circle

    However, when I click it now it tells me I'm downloading ... from ... and asks if I want to run it where it is or save it to disk first! Is there any way I can tell it not to ask, just to run it from where it is?

    Many thanks
    Beryl M


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •