0
Items : 0
Subtotal :  0.00
View CartCheck Out
Chennai
Chennai
Singapore
Mumbai
Switzerland
+91 44 4091 2000 Mon - Fri 09:00 - 18:30 766/1, TEZ, Sakthi Towers 1, Anna salai, Chennai 600 002.
+6584181583 Mon - Fri 09:00 - 18:30 68 Circular Road, #02-01, 049422, Singapore.
+91 98848 35702 Mon - Fri 09:00 - 18:30 5, Powai Lake Heights, Mumbai 400 072
+41 (0)91 225 81 00 Mon - Fri 09:00 - 18:30 Equvera - ISV Techno SAGL, Via Ligornetto 6A, 6855 Stabio, Switzerland
Ceritified
ISO 9001:2018
The Best
#1 in India
#1 in Europe
#1 in Asian-pacific
Number #1
AUTOMATION SOLUTION PROVIDER
Talk to an Expert
0
Items : 0
Subtotal :  0.00
View CartCheck Out

DDE to Excel: Writing DDE data to Excel

DDE TO EXCEL: WRITING DDE DATA TO EXCEL

Excel has built-in tools for getting DDE data. All you have to do is specify the formula like this for a cell:

=myserver|mytopic!myDDEitem

where:

myserver – DDE server name;

mytopic – topic name;

myDDEitem – DDE item name.

Once the item is updated on the server, it will be automatically updated in Excel.

This method has a few drawbacks

  1. It is rather difficult to create the history of changes for the value of a DDE item. You will have to write VBA code for that.
  2. Excel will work very slowly in case of a large number of items.

Our program offers an alternative way to generate files that can be opened in Excel and that will contain the history of value changes.

1. You should add the necessary DDE items the way it is described in the ” Writing DDE to MSSQL” section (fig. 1-3)

2. Enable writing the received data to a log file of the CSV format (fig. 1). By default, the program generates files in the Excel format. You can customize the format of the CSV file if you click the “Advanced” button.

dde-to-excel1

Fig. 1 Configuring the log file

Note 1. You should take into account that the “C:\logs” folder must be available for writing. Do not try to write log files to the root folder of the C:\ drive, the “Program Files” folder of the “Windows” folder. Starting from Windows Vista, only the Administrator can write to them.

Note 2. If you use the program as a Windows service, by default the service will be run by the system account that has restricted permissions to create and write files.