1

I have a Silverlight application that is running in the browser with the elevated trust functionality that is available to in-browser applications in Silverlight 5. I would like to use the application to pass data to an already running instance of Excel (i.e. an instance of Excel not started by the Silverlight application itself). Of key importance is that I want to get the last activated (selected) instance of Excel when there are multiple instances.

I have done something like this in a regular .NET desktop application; a discussion of the issues is summarized here. Unfortunately this example uses .NET classes that are not in Silverlight, such as System.Diagnostics.Process. Is there another way to go about this in Silverlight?

Note that I already know how to get the first running instance of Excel:

using System.Runtime.InteropServices.Automation;

...

dynamic excel = AutomationFactory.GetObject("Excel.Application");

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.