Recent

Author Topic: Office Automation (MSWORD) read and write column values  (Read 291 times)

totya

  • Hero Member
  • *****
  • Posts: 722
Office Automation (MSWORD) read and write column values
« on: September 19, 2024, 09:29:35 pm »
Hi!

An MSWord document is given, which has a mixed structure, contains plain text and a tables (with text).

I can open the docx file with Office Automation, but that's it for now.

I would like to read data from the tabular parts (for example the first two columns), and then I would like to modify these values. Can anyone provide a useful example of this?

Thanks!

(translated)

totya

  • Hero Member
  • *****
  • Posts: 722
Re: Office Automation (MSWORD) read and write column values
« Reply #1 on: September 22, 2024, 06:44:05 pm »
I temporarily bridged the problem, as there are fully usable examples for LibreOffice, exactly what I asked, on this wiki page:

https://wiki.lazarus.freepascal.org/Office_Automation
https://bitbucket.org/blikblum/pascal-demos/src/04a4d10bf30b59215ff3ad4cd41dba71405ae5fc/fpc/LibreOfficeOLE/?at=master

Of course, LibreOffice obviously modifies the original MS Word document a bit, which may require extra work to return to MS Word.
So it wouldn't be a problem if someone answered the question, I think it would help others as well.

(translated)

 

TinyPortal © 2005-2018