https://bugs.documentfoundation.org/show_bug.cgi?id=94987

--- Comment #2 from Jan-Marek Glogowski <glo...@fbihome.de> ---
>From my point of view this feature (almost?) already exists, and it's the same
solution then for bug 36075, especially since the other report states he
already uses a Calc file as mail merge input. At least my proposal is already a
workaround for bug 36075.

You can set the merged document name from a DB column. At least that option is
available, if you mail merge a document via "Ctrl + P". I didn't check the mail
merge wizard.

The file name is constructed by concatenating:

1. a path, selectable by the user. If it doesn't end with a slash, it's last
component is considered as the start of the file name.
2. the column data (which can contain a slash - internally LO uses URIs!) or
the original file name
3. an increasing number, if a file with the same name already exists
4. the filetype extension

What is (quite probably) currently missing is the creation of the
subdirectories, as the current temp file code expect the path to exists, where
it tries to create the file (but I didn't check).

If your input DB is actually a Calc sheet, you should be able to construct the
name in any way you want using any Calc formulars.

We probably just need a better documentation for this feature of mail merge and
probably some better UI.

Any additional comments welcome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to