Lazarus
Programming => Packages and Libraries => Topic started by: JD on November 08, 2018, 04:07:15 pm
-
Hi there everyone,
I just installed the OpenDocument package from the OPM because I want to generate Odt documents from code.
However I cannot get any of the examples to work because of a missing package called fpOdf.
How do I get round this problem?
Thanks a lot,
JD
-
This one? https://github.com/dgaspary/fpOdf
-
This one? https://github.com/dgaspary/fpOdf
I've seen that already. The package structure and contents is identical to the OpenDocument package which leads me to believe that the fpOdf is the old name for OpenDocument but the test examples STILL have a dependency on fpOdf and removing this dependency does not solve the problem either. :o
Now it is missing an identifier "T" in odf_types.pas
JD
-
Not sure but maybe that "T" should be "TElementType" ( %)?)
-
I just cloned the git repo from the site given above, and got it to compile after fixing these:
- Remove required package "stax"
- Undefine UseStaxWriter in unit odf_xmlutils (the compiler will find it because the stax package is not found)
- In odf_types, add unit LazFileUtils to uses.
After these changes I can run the demo OdtHelloWorld.
[EDIT]
The stax package is here: https://github.com/dgaspary/fpStax
After cloning fpStax and compiling it, the original fpOdf package can be compiled, too (LazFileUtils still has to be "used").