Apache OpenOffice (AOO) Bugzilla – Issue 62958
Mailmerge property "Selection" doesn't seem to work
Last modified: 2013-02-24 21:09:26 UTC
Attached are a document that contains a macro to perform a mailmerge and a document that is the base for this mailmerge activity. The macro sets the property "Selection" to an array of Bookmarks formerly gained, but when the maco is executed only the last Bookmark is used, so that Bookmarks.Count-times the same file is created.
Created attachment 34695 [details] the macro document
Created attachment 34696 [details] the master document used as mailmerge base
fs->tl: pTranslated in SwXMailMerge::execute should be incremented. At the moment, a given bookmark selection is translated into an index selection, but the target pointer in this loop (pTranslated) gets never incremented. (Should be trivial to fix, might I suggest 2.0.3 to make the API usable here?)
.
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x