Set userprofile values using macros

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
mamkiks
Posts: 17
Joined: Sun Mar 25, 2018 1:00 pm

Set userprofile values using macros

Post by mamkiks »

Could I change UserProfile property value using macros
when I try to do this, it gives me

This Property is READ-ONLY
OpenOffice 4.1.5 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34610
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: set userprofile values using macros

Post by RoryOF »

The user profile files are read-only when OO is open, so that OO itself, and only OO, can write updated values there when OO closes.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
mamkiks
Posts: 17
Joined: Sun Mar 25, 2018 1:00 pm

Re: set userprofile values using macros

Post by mamkiks »

RoryOF wrote:The user profile files are read-only when OO is open, so that OO itself, and only OO, can write updated values there when OO closes.
Is there no way to set username and initials using macros ?
OpenOffice 4.1.5 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34610
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: set userprofile values using macros

Post by RoryOF »

Search for OpenOffice metadata. If you want to do this, you must find a way.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Set userprofile values using macros

Post by Villeroy »

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
mamkiks
Posts: 17
Joined: Sun Mar 25, 2018 1:00 pm

Re: Set userprofile values using macros

Post by mamkiks »

Villeroy wrote:Works for me.
viewtopic.php?f=20&t=29525&p=134621#p134621
It works for getting data not toset data!
OpenOffice 4.1.5 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Set userprofile values using macros

Post by Villeroy »

Works for me reading and writing.
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
mamkiks
Posts: 17
Joined: Sun Mar 25, 2018 1:00 pm

Re: Set userprofile values using macros

Post by mamkiks »

Villeroy wrote:Works for me reading and writing.

Sorry but when I need to change it ?
this is the result
Screenshot_from_2018_04_02_09_34_45.png
Could you share with me the code to set values, please?
OpenOffice 4.1.5 on Windows 10
JeJe
Volunteer
Posts: 2777
Joined: Wed Mar 09, 2016 2:40 pm

Re: Set userprofile values using macros

Post by JeJe »

I think I've given the solution to this in your other thread.

viewtopic.php?f=20&t=93049
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Set userprofile values using macros

Post by Villeroy »

Code: Select all

Functioin setOOoSetupValue(sNodePath$, sProperty$, sValue$) As Boolean
How much spoon feeding do you need? Can you program anything at all?
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