Can you please help me, if anyone has a sample Excel file for reading and writing data using COM / OLE in pure C ++?
There is an example of microsoft:
support.microsoft.com/en-us/help/216686/how-to-automate-excel-from-c-without-using-mfc-or-import
This example creates a new excel file and writes data to it, but how to write the data to the Open excel file, how to catch this excel file, there is no such example, and for me at the moment to modify Unfortunately, absolutely not possible, too difficult: (
you should not try to write to an open file. this can corrupt the data and lose the whole file. I have no idea how one catches a file apart from throwing their hard disk at someone... this did not translate well or something?
Writing the excel format is a pain even if you use the tools MS gives us; doing it without those is even harder. Is there any chance a CSV file will do?