XlsDdeClient

Ecng.Interop.Dde

A client for interacting with Excel via Dynamic Data Exchange (DDE), providing methods to start, stop, and send data.

Hereda de: Disposable

Constructores

XlsDdeClient
public XlsDdeClient(DdeSettings settings)
xlsDdeClient = XlsDdeClient(settings)

A client for interacting with Excel via Dynamic Data Exchange (DDE), providing methods to start, stop, and send data.

Propiedades

IsStarted
public bool IsStarted { get; }
value = xlsDdeClient.IsStarted

Gets a value indicating whether the DDE client is currently started and connected.

Settings
public DdeSettings Settings { get; }
value = xlsDdeClient.Settings

Gets the settings used to configure the DDE client.

Métodos

DisposeManaged
protected override void DisposeManaged()
xlsDdeClient.DisposeManaged()

Releases managed resources by stopping the DDE client if it is started.

Poke
public void Poke(IList<IList<object>> rows)
xlsDdeClient.Poke(rows)

Sends a block of data to Excel via DDE using the specified row and column offsets.

rows
A list of rows, where each row is a list of cell values to send.
Start
public void Start()
xlsDdeClient.Start()

Starts the DDE client and establishes a connection to the specified server and topic.

Stop
public void Stop()
xlsDdeClient.Stop()

Stops the DDE client and disconnects from the server if currently connected.