Hello Andre,

Andre Heine escribió:
Hello all,

in oobasic can I set the "SetOptimalColumnWidth" on selected cells/columns.

I guess you were using the dispatch with the command URL 
".uno:SetOptimalColumnWidth", because there is no method named 
setOptimalColumnWidth().

In fact there is the property "OptimalWidth" in the service 
css.table.TableColumn.


Know someone the property name for the C++ API?

there is only *one* OOo API, with different language bindings. SO that the 
services and interfaces are the same, i.e. language independent.


Any hints?

the following works, but is pure API calls, NO dispatching at all (because I 
don't like it at all ;-) ). See if you can modify it to fit your needs:

raw C++ code is not nice, so this can be compiled and run using the SDK:


http://www.ArielConstenlaHaile.com.ar/ooo/temp/SpreadsheetColumn_cpp.zip

(just tested on Linux)

Regards
Ariel.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to