Document directory
After the configuration is complete, we need to run the demo. Haha, it's really amazing ....
Run demo
The demo I run here is documentloader.
Step 1:
Similarly, first go to the "cd f: \ part _ OpenOffice \ OpenOffice. org3 \ basis \ SDK" directory and execute setsdkenv_windows.bat
Step 2:
Go to the "cd f: \ part _ OpenOffice \ OpenOffice. org3 \ basis \ SDK \ examples \ CPP \ documentloader" directory.
Step 3:
Run the mingw32-make to generate the winexample. Out clip in the F: \ part _ OpenOffice \ OpenOffice. org3.4 _ SDK directory you just set.
In F: \ part _ OpenOffice \ OpenOffice. org3.4 _ SDK \ winexample. Out \ bin, you will find documentloader.exe. You will also findF: \ part _ OpenOffice \ OpenOffice. org3.4 _ SDK \ winexample. Out \ IncA large number of header files are generated. These files are c ++ interface files corresponding to IDL, which are generated by cppumaker.
This table indicates that documentloader.exe is successfully generated.
Run documentloader in the command line window:
Documentloader-env: ure_more_types = "F:/part _ OpenOffice/OpenOffice. org3/basis/Program/offapi. RDB "" F:/part _ OpenOffice/OpenOffice. org3/basis/SDK/examples/CPP/documentloader/test. ODT"
"Uno: socket, host = localhost, Port = 2083; URP; StarOffice. servicemanager"
Troubleshooting
I can't understand it either, but fortunately, du Niang.
Is to make soffice in listening mode, such as: soffice "-accept = socket, host = localhost, Port = 2083; URP; StarOffice. servicemanager"
The path of soffice.exe is F: \ part _ OpenOffice \ OpenOffice. org3 \ Program \ soffice.exe.
Therefore, we enter "cd f: \ part _ OpenOffice \ OpenOffice. org3 \ Program" in the preceding command line.
Execute soffice "-accept = socket, host = localhost, Port = 2083; URP; StarOffice. servicemanager"
This statement automatically opens OpenOffice. Do not close it.
Then execute documentloader, as shown below:
Documentloader-env: ure_more_types = "F:/part _ OpenOffice/OpenOffice. org3/basis/Program/offapi. RDB"
"F:/part _ OpenOffice/OpenOffice. org3/basis/SDK/examples/CPP/documentloader/test. ODT "" uno: socket, host = localhost, Port = 2083; URP; StarOffice. servicemanager"
For details about this error, refer:
1. http://blog.csdn.net/jwybo2007/article/details/8490124.
2. Renew.
In this case, OK.
All right, finish it, and take advantage of it.