Mail merge with LibreOffice Writer - Solved

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
User avatar
Topher
Posts: 85
Joined: Sun Feb 10, 2008 4:37 pm

Re: Mail merge with LibreOffice Writer

#11 Post by Topher »

That should help. I'll try it tonight. Thank you

User avatar
Topher
Posts: 85
Joined: Sun Feb 10, 2008 4:37 pm

Re: Mail merge with LibreOffice Writer

#12 Post by Topher »

I tried different ways to make this work for me, but ran into some issues.
1. I didn't see any way to change the size of the name & address space, though after thinking about it, I can probably place it so the white space is on the top and the address is on the bottom of the outline. And there wouldn't be such a large clunky looking gap between the address and the body of the letter.
2. When I added numbers to the letter, the thousands separator did not show up, just the number.
3. I tried to skip the name & address block and just add the data into the body of the letter. I could choose the spreadsheet, but the spreadsheet data did not show at all, it just showed a white space where the data should be.

User avatar
CharlesV
Global Moderator
Posts: 7078
Joined: Sun Jul 07, 2019 5:11 pm

Re: Mail merge with LibreOffice Writer

#13 Post by CharlesV »

Topher wrote: Mon May 22, 2023 11:24 pm I tried different ways to make this work for me, but ran into some issues.
1. I didn't see any way to change the size of the name & address space, though after thinking about it, I can probably place it so the white space is on the top and the address is on the bottom of the outline. And there wouldn't be such a large clunky looking gap between the address and the body of the letter.
2. When I added numbers to the letter, the thousands separator did not show up, just the number.
3. I tried to skip the name & address block and just add the data into the body of the letter. I could choose the spreadsheet, but the spreadsheet data did not show at all, it just showed a white space where the data should be.
Can you show some pix of your letter, with fields for the data in the spreadsheet?
( you can PM me if you dont want to show it in forum )

Attached is a zip file with 3 files in it. The Mail merge main file, the ods data and then the resulting output file. If you open Wirter_Mail_Merge_Example.odt and make sure the Mail Merge Toolbar is open and then click on the Data Sources, you should see the table, and clicking on the merge arrows should show the data in the letter.

The output_file.odt file is the result of clicking on the Save merged documents button and choosing to Save as a single file.

I will look at number formatting in a merge.
You do not have the required permissions to view the files attached to this post.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7078
Joined: Sun Jul 07, 2019 5:11 pm

Re: Mail merge with LibreOffice Writer

#14 Post by CharlesV »

Topher wrote: Mon May 22, 2023 11:24 pm
2. When I added numbers to the letter, the thousands separator did not show up, just the number.
In order to format a number field you have to:
1) Make sure the field in the ods is numeric, and then
2) Change the formatting in the document .
- Right click on the number field in your letter, and click on edit Fields
- Change the Radio Button on Format. Select User Defined, change the format to the format you want and then click Ok
You do not have the required permissions to view the files attached to this post.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Topher
Posts: 85
Joined: Sun Feb 10, 2008 4:37 pm

Re: Mail merge with LibreOffice Writer

#15 Post by Topher »

I didn't know it was possible to edit a field. I can use mail merge now for some things that I used glabels for.
It would be nice if I could use it without the name address block it seems to want to insist on being there. Just skip that part and add data into the body of the letter.
Thank you for your help. I really appreciate it. :popcorn: :popcorn:

User avatar
CharlesV
Global Moderator
Posts: 7078
Joined: Sun Jul 07, 2019 5:11 pm

Re: Mail merge with LibreOffice Writer

#16 Post by CharlesV »

Topher wrote: Tue May 23, 2023 11:01 am I didn't know it was possible to edit a field. I can use mail merge now for some things that I used glabels for.
It would be nice if I could use it without the name address block it seems to want to insist on being there. Just skip that part and add data into the body of the letter.
Thank you for your help. I really appreciate it. :popcorn: :popcorn:
Your very welcome. And no, you do not have to use that address block, you can just use straight from the data and in any location in the letter that you want. ( You just cant use the mail merge wizard... it has to be done "manually" )
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Topher
Posts: 85
Joined: Sun Feb 10, 2008 4:37 pm

Re: Mail merge with LibreOffice Writer

#17 Post by Topher »

And no, you do not have to use that address block, you can just use straight from the data and in any location in the letter that you want. ( You just cant use the mail merge wizard... it has to be done "manually" )
OK, I'll bite. How do you do it manually? I assume you don't mean to enter the information into each letter manually, but there is a way to do it automagically.

User avatar
CharlesV
Global Moderator
Posts: 7078
Joined: Sun Jul 07, 2019 5:11 pm

Re: Mail merge with LibreOffice Writer

#18 Post by CharlesV »

Topher wrote: Tue May 23, 2023 7:48 pm
And no, you do not have to use that address block, you can just use straight from the data and in any location in the letter that you want. ( You just cant use the mail merge wizard... it has to be done "manually" )
OK, I'll bite. How do you do it manually? I assume you don't mean to enter the information into each letter manually, but there is a way to do it automagically.
No, there are two methods to doing mail merge in libre. 1) the wizard - which appears to attempt to do an address block. and then 2) Using the Mail Merge buttons on that Mail Merge toolbar.

Using method 2, you can pull in fields from your ods, never using the address block, and then once you have "manually built" the document (ie adding your fields from the ods), then click one of the buttons on the toolbar. (ie Save Merged Documents, Print Merged Documents, or Send Email Messages.)

That is all in that document I linked / attached and it works via method #2 . ("manually" )
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Topher
Posts: 85
Joined: Sun Feb 10, 2008 4:37 pm

Re: Mail merge with LibreOffice Writer

#19 Post by Topher »

I have tried method2 before as it seemed to me that if I could skip the Mail Merge part wanting the name & address block and go right into choosing fields from the spreadsheet then I would be golden. But even though the spreadsheet file I wanted was listed, it would never show the spreadsheet unless I started with Mail Merge. That is why I thought that you had to start with Mail Merge.
If I right click on the spreadsheet, it brings up two choices: Edit Database File - which does nothing and Registered Databases. Clicking on Registered Databases - brings up a popup showing the Bibliography File showing where it is located. And my file that shows: vnd.sun.star.pkg://file:%2F%2F%2home2 - I can't see the rest of the string and can't copy it either. But if I click on EDIT then I can see the whole string and location. And lo and behold it is pointing to the document that I am in, not the spreadsheet, so no wonder there is nothing showing up on the right. So I click on browse to point to the spreadsheet file, but it is only looking for ODF database files and I can't point to the spreadsheet.
Maybe I need to start over but I still would have the problem of pointing to a spreadsheet. Is there something I need to do the register the spreadsheet?

User avatar
CharlesV
Global Moderator
Posts: 7078
Joined: Sun Jul 07, 2019 5:11 pm

Re: Mail merge with LibreOffice Writer

#20 Post by CharlesV »

You have to connect your data ( Edit | Exchange Database ) and then add the spreadsheet.

Full instructions are in that document I attached.
You do not have the required permissions to view the files attached to this post.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “General”