XlsDdeServer
Ecng.Interop.Dde
Provides a DDE server for Excel that handles poke requests and advises clients of updated data.
Hereda de: DdeServer
Constructores
XlsDdeServer
public XlsDdeServer(string service, Action<string, IList<IList<object>>> poke, Action<Exception> error)
xlsDdeServer = XlsDdeServer(service, poke, error)
Provides a DDE server for Excel that handles poke requests and advises clients of updated data.
Métodos
Dispose
protected override void Dispose(bool disposing)
xlsDdeServer.Dispose(disposing)
Releases the unmanaged resources and, optionally, the managed resources.
- disposing
- True to release both managed and unmanaged resources; false to release only unmanaged resources.
OnPoke
protected override PokeResult OnPoke(DdeConversation conversation, string item, byte[] data, int format)
result = xlsDdeServer.OnPoke(conversation, item, data, format)
Handles poke requests from DDE conversations.
- conversation
- The DDE conversation instance.
- item
- The item name requested.
- data
- The data payload in byte array format.
- format
- The format of the data received.
Devuelve: A result indicating that the poke has been processed.
Start
public void Start()
xlsDdeServer.Start()
Starts the DDE server and initializes the timer to advise clients.