This example demonstrates how to use the RTD function to retrieve data in real time from a COM Automation server.
In this example, we use a custom server that implements the IRtdServer interface. Our server provides data for stock prices, number of shares, and price change. You can use the SpreadsheetControl.Options.RealTimeData property to specify whether to update data manually or to use a timer for automatic updates.
To run the project, start Microsoft Visual Studio as an administrator. Elevated permissions are required to register the COM server after it is built.
- Form1.cs (VB: Form1.vb)
- RtdServer.cs (VB: RtdServer.vb)