I need a connection from a VISIO document to a WCF service.
I found the following very helpful tutorials:
How do I call WCF client from Excel 2003 VBA?
http://www.codeproject.com/Articles/662009/Streaming-realtime-data-to-Excel
I’ve a lot experience in creating WCF services and clients in C# - but none in VBA/VISIO-Programming. The first link helps to connect a VBA client to a WCF service and call some methods. This works perfect. We’ve a VISIO shape that acts as a button and calls a method of the WCF service and displays the result. We know how to call methods and display values. It is possible to click a button, perform a request to the server and get some results.
The problem is: how to collect results without a user that clicks the button?
VBA doesn’t support a background operation to periodically collect data from the server.
The second article describes how to push data to EXCEL using EXCEL-DNA. I couldn’t find any information whether this will also work with VISIO. EXCEL-DNA will create a *.XLL file that’s a plugin for EXCEL and I think it will not work with VISIO.
Are there any solutions to connect a VISIO client to a WCF/C# service using a ServiceCallback?