LabView

Discuss the word processor
Post Reply
carpediem
Posts: 4
Joined: Sat Aug 19, 2017 10:15 am

LabView

Post by carpediem »

Hi, I want to control Open Office fonts via LabView programmatically
OpenOffice 4.1.3 on Windows 10
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LabView

Post by Zizi64 »

control Open Office fonts
Do you want to add/delete fonts to/from the Operating System?
Or do you want to create/edit an ODF type document programatically?
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.
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LabView

Post by Zizi64 »

I see it now, you have asked it: viewtopic.php?f=44&t=90021&p=425005#p425005

You need study the API functions of the AOO/LO. (API: Application Programming Interface). You can use these API functions inside the AOO/LO (with the supported built in programming languages), or outside of AOO/LO - from an other software.

Use an object inspection tool (inside the AOO/LO) to examine the programming objects:
MRI:
viewtopic.php?f=74&t=49294

XrayTool:
viewtopic.php?f=20&t=54217

Here is the desctriptions of the API:
https://wiki.openoffice.org/wiki/API
https://api.libreoffice.org/
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.
carpediem
Posts: 4
Joined: Sat Aug 19, 2017 10:15 am

Re: LabView

Post by carpediem »

I need to create .odt and then put some text in it, and change fonts
OpenOffice 4.1.3 on Windows 10
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LabView

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.
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LabView

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.
carpediem
Posts: 4
Joined: Sat Aug 19, 2017 10:15 am

Re: LabView

Post by carpediem »

Thank you a lot, this was helpful
OpenOffice 4.1.3 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: LabView

Post by Villeroy »

carpediem wrote:I need to create .odt and then put some text in it, and change fonts
2 simple lines of code

Code: Select all

REM My_Template.ott has all the formatting attributes (incl. font) preset

doc=StarDesktop.loadComponentFromURL("file:///path/My_Template.ott","",0,Array())
doc.Text.setString("blah blah blah")
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply