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

            Bug ID: 104902
           Summary: unable to display chr(13) in a cell in calc when
                    inserted by a macro
           Product: LibreOffice
           Version: 5.1.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

On any sheet execute this macro:
****
dim document   as object
dim dispatcher as object

rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$A$1"

dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "StringName"
args2(0).Value = "123" & chr(13) & "456"

dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args2())
****

The A1 cell will display
123456
It should display 
123
456

Interestingly enough, the string is correctly displayed in the formula bar.

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

Reply via email to