Lazarus

Programming => Packages and Libraries => Topic started by: JD on November 08, 2018, 04:07:15 pm

Title: Problems with OpenDocument
Post 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
Title: Re: Problems with OpenDocument
Post by: wp on November 08, 2018, 04:29:05 pm
This one? https://github.com/dgaspary/fpOdf
Title: Re: Problems with OpenDocument
Post by: JD on November 08, 2018, 04:57:50 pm
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
Title: Re: Problems with OpenDocument
Post by: Ñuño_Martínez on November 09, 2018, 06:14:48 pm
Not sure but maybe that "T" should be "TElementType" ( %)?)
Title: Re: Problems with OpenDocument
Post by: wp on November 09, 2018, 06:26:22 pm
I just cloned the git repo from the site given above, and got it to compile after fixing these:
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").
TinyPortal © 2005-2018