I will describe here an interesting scenario : what can you do when you have a VSTO project but that you want to open the file from command line (from another process) but anyway being able to access the classical VSTO method and members like Globals.ThisWorkbook, ...
Here we will see :
- how to open a VSTO document from command line (ie how to open an excel document from command line) and getting interop object
- an explanation about why you cannot convert this interop object to a VSTO object
- how you can get use of .NET remoting to access to the VSTO objects inside of your document
- and finally how you can achieve the same result using WCF
[Plus]