Saturday 15 March 2014

vsto - How do I overcome MSFT Word blocking UI while loading embedded external image? -


I am trying to put an external image into an MSFT word document. We do not have to get the image to appear quickly, but we need the user MSFT so that the user can continue using the word without URZ, while it is loading the external image because some users have used the word application Notified UI blocking for seconds. I have tried to do this in various ways:

  • Use Word Interop to insert an HTML file containing an IMG tag where the src attribute is the URI in the external image
  • A .DOTM file where I include one of the building blocks in which there is an external connection where the target is the URI for the external image
  • For an HTML file with an IOM tag A with an etchink Making Diotim file. Where the source feature is the URI in the external image

The problem with any of the mentioned methods is that the MSFT words block the UI while it is trying to load the external image . Even while using a Word DOMT template, Word applications blocked the UI while compiling the DOTM template.

I have tried to reduce this problem by testing the network before using any of the techniques above, but the different users who appear due to unstable network conditions are still complaining Whenever the image is loading whenever the MSFT words sometimes stop the UI. We will also be allowed to embed these external images to these users, while offline is finally.

There are several reasons in which the image should be external (such as a point of update for content editors) and we can not load images locally and then add a local reference (like our writers can easily Need to transfer / share documents with external image contexts).

For users who use our software, the gallery images that our users can insert, it is not so important that the image actually represents for it as long as they Do not submit to colleagues / customers. They will also be altered with a broken image which sometimes gets blocked for several seconds after the word because they understand when the image appears, when they push the document with their workflow.

I have tried to preload the image in the WinINET cache, but it seems that the word does not pay attention to it maybe there is such avenue that I have not yet figured out? I am also seeing that if there is a hayf that is not trying tricks in the MSFT office, then by explaining that there is no internet connection and it is broken without blocking the UI for an extended period of time Allows rendering to render image.

OK, it is possible to set an option in the word to show "picture placeholder". This prevents actual images from displaying, but it applies to the whole app, not a special document or picture, so I'm not sure that helps

is often a method used in " Back "was used when the resource was at a premium, use the illustration field (link to the photo), then lock the field so that it could not be updated. You can choose whether to store the photo in the document or use the \ d switch. ().

This will definitely allow the document to open more quickly because the image will be allowed to update only when the field is unlocked. So you need some type of code or instructions about the field to enable the field.

In my experience, the main drawback is that in recent versions of the word there is a bad tendency to remove the area code. Embed the picture in the document as I remember, in 2007, the "compatibility" Mode "(or maybe it is 2010) to stop Word.


No comments:

Post a Comment