excel_attach
Connect Excel to work.
At the time of launch, Excel must be open.
By default, the current Excel page becomes active.
Call:
int ires = excel_attach();
If 0 is returned, then the connection is successful.
Example.
Connect the current Excel table and output the number 100.1 to the current position of the marker.
int my_variable;
coutvar << my_variable;
int ires = excel_attach();
if (res != 0)
{
cout << "No connection to Excel";
return -1;
}
double dvalue = 100.1;
excel_putnumvalue(dvalue);
excel_detach();