Implemented the main part of the project (95%).
- Language: C ++ (11); IDE: CLion 2016.2.2 CE:
- Wednesday: MinGW (3.21),
- Collector: CMake (3.6.1);
It has become necessary to add a module for outputting reports in the *.doc(x) , *.xls(x) format, having studied several topics from forums, etc. I found solutions, but intended for Borland C++ 6 and Visual C++ , namely to use standard Borland / studio libraries or to write my header with a bunch of imports.
#ifdef Uses_MSO2000 // for MS Office 2000 #import "C:Program FilesMicrosoft OfficeOfficeMSO9.DLL" #import "C:Program FilesCommon FilesMicrosoft SharedVBAVBA6VBE6EXT.OLB" #import "C:Program FilesMicrosoft OfficeOfficeMSWORD9.OLB" rename("ExitWindows","_ExitWindows") #import "C:Program FilesMicrosoft OfficeOfficeEXCEL9.OLB" rename("DialogBox","_DialogBox") rename("RGB","_RGB") exclude("I","IPicture") #import "C:Program FilesCommon FilesMicrosoft SharedDAODAO360.DLL" rename("EOF","EndOfFile") rename("BOF","BegOfFile") #import "C:Program FilesMicrosoft OfficeOfficeMSACC9.OLB" #endif In principle, I would have been satisfied with the last option (heder with imports), but I didn’t find the import option for the 2003 office, on demand you need to have both formats - 2003 and 2007, so far mainly 2003.
The question is: does anyone have an example, a tutorial, a familiar article, can you share experience on how to work with the 2003 office simply and without any unnecessary libraries?
Option - to remake the project under VS or Borland - is absolutely not suitable. Unfortunately, the experience in С++ not very big, maybe I don’t understand something and you can adapt the Borland library, or they use some standard libraries. Alas, I did not understand with OLE .