OpenOffice SDK configuration for Windows 7 (4)

Source: Internet
Author: User
Document directory
  • Step 1:
  • Step 2:
  • Step 3:

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.