Recent

Author Topic: Linux and Libre Office  (Read 688 times)

w click

  • Full Member
  • ***
  • Posts: 190
Linux and Libre Office
« on: December 31, 2025, 12:39:29 pm »
I'm using Windows 10 and I'm considering shifting over to Linux.  (Zorin, I was thinking.)  I've a program I've written that I absolutely need.  It 'runs' Word doing things like wordcounts and replacements.  I'm hoping Lazarus's write-once-compile-anywhere will see me through, but does anyone have any experience of this?  Are there equivalent 'magic words' for Libre Office automation?  Thanks in advance.

Dzandaa

  • Hero Member
  • *****
  • Posts: 513
  • From C# to Lazarus
Re: Linux and Libre Office
« Reply #1 on: December 31, 2025, 05:09:21 pm »
Hi,

I'm using Linux Mint and Lazarus and most of my programs written in Windows 10
runs without problem on Linux, Sometimes I have to change the Layout or Fonts, but that's all.
If you don't use Direct X, that's O.K.

For LibreOffice Writer, there's a word counter in Tools->Wordcount and a search/replace function in Edit.

But you can try it first in Windows 10 to test its features.

Happy New year.

B->
Regards,
Dzandaa

Thaddy

  • Hero Member
  • *****
  • Posts: 18695
  • To Europe: simply sell USA bonds: dollar collapses
Re: Linux and Libre Office
« Reply #2 on: January 01, 2026, 02:46:23 pm »
Look here:
https://wiki.freepascal.org/Office_Automation

Using the Pascal UNO bridge (OpenOffice/LibreOffice) works on Linux too.
The pure COM solution also works with Wine.
You can also go through the Python bindings.

The screenshot is using the UNO bridge directly for LibreOffice.
I can add the full example if you want, but it is trivial.
« Last Edit: January 01, 2026, 02:53:36 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

w click

  • Full Member
  • ***
  • Posts: 190
Re: Linux and Libre Office
« Reply #3 on: January 03, 2026, 10:53:30 pm »
So, it sounds like this is a 'go' but maybe I should install Linux Mint.

 

TinyPortal © 2005-2018