none
WebBrowser in Form in Word Addin - Flash not loaded RRS feed

  • Question

  • Hi,

    I'm new to Office Development, so if this is a simple question please be kind...;)

    I have added a form to a office 2010 addin that contains a browser component and am setting the source to a temporary htm file that I am generating in my app.  the file contains a few tags and a flash object. the text part is displayed, but the flash object is not loaded - right clicking suggests that it is the flash object that is not being loaded, or that flash ittself is not allowed.

    If I do the same in a win forms project the swf file plays as expected.

    Any ideas / advice?

    Thanks,

    Craig

    THe PC is win7 / IE 8 / Office 2010 / Microsoft Visual Studio 2010
    Version 10.0.40219.1 SP1Rel
    Microsoft .NET Framework
    Version 4.0.30319 SP1Rel

    Installed Version: Professional

    Microsoft Office Developer Tools   01018-532-2002102-70288
    Microsoft Office Developer Tools

    Microsoft Visual Basic 2010   01018-532-2002102-70288
    Microsoft Visual Basic 2010

    Microsoft Visual C# 2010   01018-532-2002102-70288
    Microsoft Visual C# 2010

    Microsoft Visual C++ 2010   01018-532-2002102-70288
    Microsoft Visual C++ 2010

    Microsoft Visual F# 2010   01018-532-2002102-70288
    Microsoft Visual F# 2010

    Microsoft Visual Studio 2010 Team Explorer   01018-532-2002102-70288
    Microsoft Visual Studio 2010 Team Explorer

    Microsoft Visual Web Developer 2010   01018-532-2002102-70288
    Microsoft Visual Web Developer 2010

    Microsoft Windows Phone 7.1 Profiler   01018-532-2002102-70288
    Microsoft Windows Phone 7.1 Profiler

    Windows Phone SDK 7.1 (Beta2) - ENU   01018-532-2002102-70288
    Windows Phone SDK 7.1 (Beta2) - ENU

    Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2565057)   KB2565057
    This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/2565057.

    Microsoft Advertising SDK for Windows Phone 7   5.2.606.0

    Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509)   KB983509
    This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/983509.

    Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.40219
    Microsoft Visual Studio 2010 SharePoint Developer Tools

    Microsoft XNA Game Studio   4.0
    Microsoft XNA Game Studio 4.0
    Build 4.0.30602.1

    Windows Azure Tools   Version 1.3
    Windows Azure Tools for Microsoft Visual Studio 2010 v1.3.31122.1601

     

    Monday, September 12, 2011 10:52 AM

Answers

All replies

  • Hi!

    Can you try to Add as a RESOURCE you SWF and then load it from there?


    MVP Office Development, MCP, MCTS SharePoint 2010 Development
    • Proposed as answer by Bruce Song Thursday, September 22, 2011 8:24 AM
    Monday, September 12, 2011 1:43 PM
  • Hi Craig

    What is the container for the webbrowser component? A Windows Form? Custom task pane? Is it on the document surface? Something else?


    Cindy Meister, VSTO/Word MVP
    Tuesday, September 13, 2011 8:44 AM
    Moderator
  • Hi Craig,

    How about the problem on your side? Do the suggestions help you? If you still need any assistant, just feel free to follow up.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, September 21, 2011 1:49 AM
  • Hi Cindy - Thanks for replying - when running in word, the webbrowser control is still inside a Windows Form, which is opened from the context menu.

    Wednesday, September 21, 2011 8:59 AM
  • Joao  Thanks, - I'll look into this.   

    Wednesday, September 21, 2011 9:32 AM
  • Hi Bruce,

    I've had some other things come up that are more urgent than this the project that this developent is part of, so need to attend to those first but will get round to trying out these ideas over the next few weeks.

    Thanks.

    Craig

    Wednesday, September 21, 2011 9:36 AM
  • Hi Craig,

    Please take a look at this thread:

    webbrowser control can't run flash

    http://social.msdn.microsoft.com/Forums/en/Vsexpressvcs/thread/2a8cc0b8-5b1c-4a53-b489-49994250ed14

    Please try to reinstall the Flash Player ActiveX control to see whether this can address the problem.

    http://social.msdn.microsoft.com/Forums/en/Vsexpressvcs/thread/2a8cc0b8-5b1c-4a53-b489-49994250ed14

    Hope this can help you and feel free to follow up after you have tried.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Craig Douglas 2 Thursday, September 22, 2011 10:12 AM
    Thursday, September 22, 2011 3:41 AM
  • I got to the bottom on this one.

    The version of MS Office on My development machine is the X64 version, so when the add-in was running, it was using the X64 Version of IE 8.  There is no release version of flash player at the time of writing, so there wasn't a Flash Player Plug-in for an X64 browser installed on my pc, therefore the flash object wouldn't load on my pc.

    The other win forms app was compiled for X86, so used the normal WOW version of IE, which had a flashplayer plugin installed.

    I was able to download a release candiadate of Flashplayer 11 X64 from Adobe, which resolved the issue, without any changes to the code of the add-in.

    Thanks to all for your help with this one.

    • Marked as answer by Craig Douglas 2 Thursday, September 22, 2011 10:11 AM
    Thursday, September 22, 2011 10:11 AM