<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Did you tran</div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757">Sent from my Samsung Galaxy smartphone.</div></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>Did you translate the solution into basic code?</div><div><br></div></div>Hi Fernand,<br><br>thanks for the ideas. Sadly nothing you or anybody else posted helped.<br>Finally I found this hack (here xChart has type Reference< XTextContent<br>> xChart):<br><br>  Reference < XEmbeddedObjectSupplier2 >xEOS2(xChart, UNO_QUERY_THROW);<br>  Reference < XEmbeddedObject ><br>xEmbObj(xEOS2->getExtendedControlOverEmbeddedObject());<br><br>  if (xEmbObj->getCurrentState() ==<br>com::sun::star::embed::EmbedStates::LOADED)<br>      xEmbObj->changeState( com::sun::star::embed::EmbedStates::RUNNING);<br>  if (xEmbObj->getCurrentState() ==<br>com::sun::star::embed::EmbedStates::RUNNING)<br>      xEmbObj->changeState(<br>com::sun::star::embed::EmbedStates::INPLACE_ACTIVE);<br>  if (xEmbObj->getCurrentState() ==<br>com::sun::star::embed::EmbedStates::INPLACE_ACTIVE)<br>      xEmbObj->changeState( com::sun::star::embed::EmbedStates::RUNNING);<br><br>which works on Windows. On Linux this works better:<br><br>  Reference < XEmbeddedObjectSupplier > xEOS(xChart, UNO_QUERY_THROW);<br>  Reference < ::com::sun::star::chart::XChartDocument ><br>cDoc(xEOS->getEmbeddedObject(), UNO_QUERY_THROW);<br><br>  Reference< XPropertySet > dProperties(cDoc->getDiagram(),<br>UNO_QUERY_THROW);<br>  Any type = dProperties->getPropertyValue(OU("SplineType"));<br>  dProperties->setPropertyValue(OU("SplineType"), makeAny(sal_uInt32(0)));<br>  dProperties->setPropertyValue(OU("SplineType"), makeAny(sal_uInt32(1)));<br>  dProperties->setPropertyValue(OU("SplineType"), type);<br><br>Regards,<br>    Jan<br><br>_______________________________________________<br>LibreOffice mailing list<br>LibreOffice@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/libreoffice<br></body></html>