Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Hi,

with this code I can change the data in a Writer chart:

    set doc = thisComponent
    set ctrl = thisComponent.CurrentController
    xChart = ctrl.getModel().getEmbeddedObjects.getByName("Objekt1")
    set cDoc = xChart.getEmbeddedObject
    set cDataArray = cDoc.getDataProvider
    data = cDataArray.getData
    ' Do something with the data
    cDataArray.setData(data)

But I can't get the chart to update. The only way I see is to
double-click on the chart in the document, then it will update.

What is the right way to force an update via code?

Thank!
    Jan


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.