Hello Ariel,
Am Donnerstag, 21. Februar 2008 05:12 schrieb Ariel Constenla-Haile:
your example works fine with sdk 2.3:-)
We need sdk 2.0, so I walked through your code and hints (docs).
(XEmbeddedObjectSupplier2 isn't in sdk 2.0)
I've found "XVisualObjects" that offers me "set/getVisualAreaSize()".
---snip ---
uno_Component embObjComp = embObjSupplier->getEmbeddedObject();
uno_VisualObject visual ( embObjComp, UNO_QUERY );
Size sSize = calcCellRangeSize ( xSheets, getUsedArea( xSheet ) );
visual->setVisualAreaSize ( Aspects::MSOLE_CONTENT, sSize );
props->setPropertyValue(OUString::createFromAscii("Width"),
makeAny(sSize.Width));
props->setPropertyValue(OUString::createFromAscii("Height"),
makeAny(sSize.Height));
------------
[...]
> see if you can get something useful from this
Your code does exactly that, for what I'm searching;)
> http://www.ArielConstenlaHaile.com.ar/ooo/temp/EmbeddedCalcResizer.zip
Can the SDK API developer put your examples in further sdk releases?
Your examples gives an newbie a powerful start into the C++ API...
I would have searched myself death in the documentation:-\
Great thanks for your help!!!
In hope, that the time comes to help also somebody...
Great thanks!!!
Best regards
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]