Bug 150233

Summary: c.s.s.text.MailMergeType.SHELL does nothing
Product: LibreOffice Reporter: Andreas Säger <villeroy>
Component: sdkAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: sokol
Priority: medium    
Version: 7.3.5.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: simple mail merge macro

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.