Custom template toolbar and menus lost after MailMerge

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Isatis34
Posts: 15
Joined: Wed Jun 28, 2023 11:45 am

Custom template toolbar and menus lost after MailMerge

Post by Isatis34 »

Hello,

I'm using macro to make mailmerge from a document based on a template with custom toolbar ans menus.
The mailmerge works fine and I found my document in the "OutputURL" directory.
I open the document, the properties of this say that the template stay the same as my base template, but custom toolbar ans menus has diseapear, event in "Customize toolbar".

Is the a way to keep this customized items ?

Thanks !
LibreOffice 7.5.3.2 (x86 64), Windows 10
User avatar
Zizi64
Volunteer
Posts: 11364
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Custom template toolbar ans menus lost after MailMerge

Post by Zizi64 »

Are the custom toolbars and menus and the macro code stored in the template file?

Can you upload a sample document here?
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.
Isatis34
Posts: 15
Joined: Wed Jun 28, 2023 11:45 am

Re: Custom template toolbar and menus lost after MailMerge

Post by Isatis34 »

Hello,

Thanks for your quick reply !

No, Macros are in personal forlder. Toolbar and menus are in a shared template.
LibreOffice 7.5.3.2 (x86 64), Windows 10
Isatis34
Posts: 15
Joined: Wed Jun 28, 2023 11:45 am

Re: Custom template toolbar and menus lost after MailMerge

Post by Isatis34 »

This is a simple example.
I create a simple template (Template.ott) with a custom menu and a custom toolbar. This template is in my shared template.

I create a new document (MainDoc.odt) ready to mailmarge. Is is link to MyData.ods
I mailmerge to a new document (MergedDoc.odt) => the custom menu and toolbar are lost. The template in MergedDoc.odt is Template.
Attachments
MergedDoc.odt
(9.87 KiB) Downloaded 65 times
MyData.ods
(8.49 KiB) Downloaded 60 times
Template.ott
(13.11 KiB) Downloaded 62 times
LibreOffice 7.5.3.2 (x86 64), Windows 10
Isatis34
Posts: 15
Joined: Wed Jun 28, 2023 11:45 am

Re: Custom template toolbar and menus lost after MailMerge

Post by Isatis34 »

The last file...
Attachments
MainDoc.odt
(15.69 KiB) Downloaded 60 times
LibreOffice 7.5.3.2 (x86 64), Windows 10
Isatis34
Posts: 15
Joined: Wed Jun 28, 2023 11:45 am

Re: Custom template toolbar and menus lost after MailMerge

Post by Isatis34 »

Hello,

As I don't have any response, I use an other way to do what I want. I don't use OpenOffice mailmerge, but I just replace mailmerge fields by their values.

I will close this subject if I can.

Thanks to all.
LibreOffice 7.5.3.2 (x86 64), Windows 10
Post Reply