Re: Repost: Code behind events are not firing

From: Iouri Simernitski (iouris_at_micro.nospam.soft.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 21:36:43 GMT

Dave,

I am afraid I have no solution for you. Although this time I did not debug
into Word's code, I am pretty sure it's a dead end.

Here's the list of problems I have encountered so far:
1. (Your original problem) Word would not run a VSTO solution if opened in
IE in a separate window through http. This problem also repros if you drag
a drop a Word doc onto an IE window when "Browse in same window" is
unchecked in the file type configuration.
2. When opening a Word template in the IE window, the template itself is
opened, instead of a new file based on the template.
3. When a browser (Mozilla and IE) runs Word on the command line, the
cached file location (and not the URL) is substituted for %1 on the command
line, even though Word is able to open URLs directly. This means that a
relative location for a VSTO assembly will be broken in some scenarios over
HTTP.
4. Problem 3 above is a curse and a blessing, because even if you
configured Word to run on the command line (for example to work around
problems 1 and 2 above), it will silently bypass the VSTO loader if the
template location is a URL (try winword /Zhttp://mysite.com/Template.dot).

In order to work around the above problems, one could:
a) Rename the MyFile.dot file to, say, MyFile.DOG
b) On the client machine, create a new file type for .DOG with the command
line winword.exe /z%1
c) Modify custom properties on the .DOG file to point to an absolute URL

However, one hits problem number...

5. When Word is configured to run on the command line (through steps a, b,
c above), you would receive a Word dialog "Word experienced an error trying
to open the file". I did not investigate why exactly this is happening,
because even if this is solved, there is problem number ...
6. When IE tries to load a Word document configured as a custom file type
and that document is already in the cache, IE will open the document as the
DOC type, not the custom type. This means that, if after hitting the
problem 5 above, you close the empty Word window, and hit enter in IE's
address bar again, the Word document will happily open inside IE (if
configured so), or outside IE (see problem 1 above)!

I often end my messages with "hope this helps". Not this time - sorry ...

If I think of a solution, I will post a follow-up.
Best regards,
Iouri

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



Relevant Pages

  • abort a C++ configuration build using command line ?
    ... I'm on a CShrap tool to manage compilation of C++ projects using visual net ... To build a specific configuration of my solution, ... giving it this command line: ... I also don't want any IDE or window to open, I want the build to be ...
    (microsoft.public.vstudio.general)
  • Re: How do I Permanently Prevent the System Configuration Utility window from appearing
    ... ''System Configuration Utility'' window still pops up on reboot. ... have a look at the actual command line I mentioned. ...
    (microsoft.public.windowsxp.general)
  • Re: Great SWT Program
    ... mostly solve the blind-typing problem that I definitely recall emacs ... Except of course that you need to know some arcane command language ... Hitting tab should insert a tab ... one-line "window" in which the rest of what I type appears, ...
    (comp.lang.java.programmer)
  • Re: Printer Control and Print/Preview Problems
    ... to be appended to the report print stream. ... or "Print" with the DoCmd.OpenReport command, ... still open preview window. ... > following that with an OpenReport using acNormal. ...
    (microsoft.public.access.reports)
  • Re: playtime for spare PCs -Jeff Gaines.
    ... The Black Window is the "Command Prompt Window" & that wouldn't have ... The Window Opens up & Flashes up ... I would expect there to be 2 User Accounts (on a WinXP ...
    (uk.people.silversurfers)