Recent

Author Topic: [solved] "documents" - how to grab?  (Read 1026 times)

Nicole

  • Hero Member
  • *****
  • Posts: 970
[solved] "documents" - how to grab?
« on: July 12, 2022, 11:42:21 am »
How do I get the path "documents" (in German "Eigene Dateien) of the user under Windows 10?
« Last Edit: July 14, 2022, 06:03:15 pm by Nicole »

rvk

  • Hero Member
  • *****
  • Posts: 6109
Re: "documents" - how to grab?
« Reply #1 on: July 12, 2022, 11:45:02 am »
See https://forum.lazarus.freepascal.org/index.php?topic=35841.0

(PS. The forum also has a search function)

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: "documents" - how to grab?
« Reply #2 on: July 12, 2022, 03:27:05 pm »
Thank you so much.
I could not imagine, how easy it seems to be (in Delphi it was an ugly bundle).

btw, before I post again something "old" to "easy to be find".
I could not find, how to open an odt-file.
Yes, many hits in search, but not "the one" like this link above (so happy to have it).
Do you have an odt-open-link as well?
I just would need: open - search it - copy the found chapter

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: "documents" - how to grab?
« Reply #3 on: July 12, 2022, 05:20:30 pm »
AFAIK we don't have a reader for odt documents, yet. There is a writer in fpvectorial, or in the fpODF package, but no reader...

All you could do is to open the ODF file by calling OpenDocument(file_name_of_the_odf_file) (in unit LCLIntf). This opens LibreOffice Writer and loads the file into it.

 

TinyPortal © 2005-2018