https://bugs.freedesktop.org/show_bug.cgi?id=80494

          Priority: medium
            Bug ID: 80494
          Assignee: [email protected]
           Summary: Creating chart by StarBasic Macro fails
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: UNCONFIRMED
           Version: 4.2.4.2 release
         Component: BASIC
           Product: LibreOffice

Creating a chart in LibreOffice Calc by means of a StarBasic macro fails, cause
is unclear. I assume that the code examples from OpenOffice.org Wiki should
work in LibreOffice, too.

Steps to reproduce:
1. In LibreOffice, create a new basic macro module;
2. Copy and paste the macro code from
https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Structure_of_Charts
betwenn Sub <MacroName> and End Sub
3. Compile and run the macro.

Result:
1. On first run, LO throws an IllegalArgumentException on line
"Charts.addNewByName("MyChart", Rect, RangeAddress(), True, True)";
2. On second and subsequent runs, LO throws a NoSuchElementException on line
"Chart = Charts.getByName("MyChart").EmbeddedObject"

Expected result:
Execute the macro, creating the chart.

It seems that the "Charts.addNewByName()" call fails, but there seems no way to
debug this, and it's exactly the code as proposed in the documentation.

-- 
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

Reply via email to