https://bz.apache.org/ooo/show_bug.cgi?id=127050
Issue ID: 127050
Issue Type: DEFECT
Summary: I use API to generate a .ods file with chart, but the
"LineDash" propert setting doesn't work
Product: Calc
Version: 4.1.2
Hardware: PC
OS: Linux, all
Status: UNCONFIRMED
Severity: Normal
Priority: P5 (lowest)
Component: programming
Assignee: [email protected]
Reporter: [email protected]
I am a Java application developer, and use OpenOffice API (some jar
package, like juh.jar jurt.jar ridl.jar unoil.jar unoload.jar) to generate
a .ods file with chart in it. And I want change the dash style of each line
in the chart, so I use API function setPropertyValue("LineDash", myDash) to
set the "LineDash" property. But it doesn't work, the dash style in the
chart keep unchange after my setting.
my code is as following:
aseriespro = xDiagram.getDataRowProperties(kk);
aseriespro.setPropertyValue("LineStyle", LineStyle.DASH);
LineDash aDash = new LineDash();
aDash.Style = DashStyle.ROUND;
aDash.Dots = 2;
aDash.DotLen = 100;
aDash.Dashes = 1;
aDash.DashLen =200;
aDash.Distance =100;
aseriespro.setPropertyValue("LineDash", aDash);
And I have checked that:
1> the data of aDash have been set successfully, because I use API
function getPropertyValue("LineDash") to check it
2> The other properties can be set successfully, and works well, like
"LineColor" "LineWidth".
Seems only the "LineDash" doesn't work. Thanks for your help in advance.
Look forward to your reply.
--
You are receiving this mail because:
You are the assignee for the issue.