https://bugs.freedesktop.org/show_bug.cgi?id=73221
--- Comment #12 from Matt Price <[email protected]> --- I am finding that the content of comments created with a macro are also not being saved to docx. So it is not dependent just on the final state of the document -- it seems to have to do with whether the comment was ever manually exited. Here's the macro I'm using: sub createCommentwithCheckmark rem create the annotation object oAnno = ThisComponent.createInstance("com.sun.star.text.textfield.Annotation") rem Chr 10004 is the decimal for hex code 2714, "heavy checkmark" oAnno.Content = Chr(10004) oAnno.Author = "Matt Price" oText = ThisComponent.Text rem check to see if anything is selected oSels = ThisComponent.getCurrentSelection() If Not IsNull(oSels) Then oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC, oAnno, True) Else oVC = ThisComponent.CurrentController.ViewCursor oText.insertTextContent(oVC.Start, oAnno, False) End If end sub I'm guessing that using "insertTextContent" is the only line that really matters here -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
