Bug 150233 - c.s.s.text.MailMergeType.SHELL does nothing
Summary: c.s.s.text.MailMergeType.SHELL does nothing
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-02 17:07 UTC by Andreas Säger
Modified: 2022-08-02 17:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
simple mail merge macro (13.42 KB, application/vnd.oasis.opendocument.text)
2022-08-02 17:08 UTC, Andreas Säger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2022-08-02 17:07:46 UTC
Description:
The macro in the  attached document runs without error but does nothing.
Expected result: Load a new document with the merged document or multiple documents with single mail merge instances.

Steps to Reproduce:
1. Load attachment
2. Click push button
3. Read embedded Basic code

Actual Results:
Nothing

Expected Results:
Load one document at least 


Reproducible: Always


User Profile Reset: No



Additional Info:
No more info
Comment 1 Andreas Säger 2022-08-02 17:08:29 UTC
Created attachment 181550 [details]
simple mail merge macro
Comment 2 Mike Kaganski 2022-08-02 17:51:08 UTC
The code does create a document, and it is returned from execute(). The result of the execute depends on the OutputType, and in a boolean indicating success, except for css.text.MailMergeType.SHELL, in which case it returns a XTextDocument.

Try using

> doc = mm.execute(Array())

and inspect the doc object.

I apologize for unclear description I gave in https://ask.libreoffice.org/t/c-s-s-text-mailmergetype-shell-4/80148/2.