Autofit row height in XLS files from Node.js application

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
acetonic
Posts: 4
Joined: Thu Oct 27, 2022 11:01 am

Autofit row height in XLS files from Node.js application

Post by acetonic »

Hello!
We have a Node.js application where need to handle many xls files and autofit it row height.Is it possible to run headless OpenOffice calc application and run this function for a file, or use some js SDK ? How to realize this ?

 Edit: Changed subject, was Autofit row height 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
OpenOffice 4.1 on Ubuntu 22
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Autofit row height in XLS files from Node.js application

Post by Zizi64 »

You can control all of the functions and features of the AOO/LO by some macros using the API functions of the AOO /LO. (or you can control at least MOST of them.)

But, the AOO/LO has not 100% compatibility with the foreign and obsolete file formats like the .xls. Use the ODF file formats if you want to work with the AOO/LO so efficiently. The API of the AOO/LO and the contolling/programming environment of the MS Office are strongly different.

AOO = Apache OpenOffice
LO = LibreOffice
API = Application Programming Interface
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
acetonic
Posts: 4
Joined: Thu Oct 27, 2022 11:01 am

Re: Autofit row height in XLS files from Node.js application

Post by acetonic »

Zizi64 wrote: Thu Nov 10, 2022 7:52 am You can control all of the functions and features of the AOO/LO by some macros using the API functions of the AOO /LO. (or you can control at least MOST of them.)

But, the AOO/LO has not 100% compatibility with the foreign and obsolete file formats like the .xls. Use the ODF file formats if you want to work with the AOO/LO so efficiently. The API of the AOO/LO and the contolling/programming environment of the MS Office are strongly different.

AOO = Apache OpenOffice
LO = LibreOffice
API = Application Programming Interface
How can I call API functions of AOO from JS code? There is no SDK for it.
OpenOffice 4.1 on Ubuntu 22
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Autofit row height in XLS files from Node.js application

Post by Zizi64 »

Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
UnklDonald418
Volunteer
Posts: 1549
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Autofit row height in XLS files from Node.js application

Post by UnklDonald418 »

When using the LO/OO API with JAVA see
http://fivedots.coe.psu.ac.th/~ad/jlop/
 Edit: 2023-12-24: Broken link -- MrProgrammer, forum moderator  
Last edited by MrProgrammer on Sun Dec 24, 2023 5:40 pm, edited 1 time in total.
Reason: Report broken link
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
Post Reply