1
votes

Can you please let me know how to add flash object into the custom task pane using VSTO?

1
please mark the answer as answered, since it seems like you benefited from the answer.Anonymous Type

1 Answers

1
votes

You can add a "Shockwave flash object" control to your task pane or form region. You may have to find it in your user controls and add it in you tool box. You can then set the Movie property to the URI of the flash swf.

Marcus

Update

You can add you swf file to your project and set it to copy to output then you need to reference it in code.

add a helper property to you addin or copy the code out.

 static public string AssemblyDirectory { 
            get { 
                string codeBase = Assembly.GetExecutingAssembly().CodeBase; 
                UriBuilder uri = new UriBuilder(codeBase); 
                string path = Uri.UnescapeDataString(uri.Path); 
                return Path.GetDirectoryName(path); 
            } 
        }

Then in your taskpane showing/init event

String swfPath = AssemblyDirectory + Path.DirectorySeparatorChar + "menu.swf";
axShockwaveFlash1.LoadMovie(0, swfPath);