incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 114097] programmatically modifying the data of an embedded chart does not udate the chart's visual representation
Date Wed, 25 Apr 2012 00:35:37 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=114097

Ariel Constenla-Haile <arielch@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #11 from Ariel Constenla-Haile <arielch@apache.org> 2012-04-25 00:35:37
UTC ---
(In reply to comment #10)
> I think, that the macro has an error.
> 
> After the lines
>     data(0) = rowData()
>     chart.Model.Data.setData( data() )
> in sub modifyChartData
> update is missing. That are the lines
>     dim oXCOEO as variant
>     oXCOEO = chart.ExtendedControlOverEmbeddedObject
>     oXCOEO.update()
> 
> That is nesseccary for other OLE like formulas too, so nothing special for
> charts. I think, that it is no bug.

You shouldn't need to update anything, modifying the model should update the
visual representation:

oChart is a chart    
    Dim oChartData, oData()
    oChartData = oChart.getData()
    oData = oChartData.getData()
    oData(0)(0) = oData(0)(0) * 0.95
    oChartData.setData(oData)
setData() should update the visual representation

oFormula is a math formula
    Dim sFormula$
    sFormula = oFormula.getPropertyValue("Formula")
    oFormula.setPropertyValue("Formula", sFormula + " newline " + sFormula )
setPropertyValue() should update the visual representation

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message