On 08.03.2011 18:26, Oliver Brinzing wrote:
can someone give me an example how to use createNameGroup() from 
c.s.s.XDataPilotFieldGrouping
according to 
http://api.openoffice.org/docs/common/ref/com/sun/star/sheet/XDataPilotFieldGrouping.html
it take a sequence: createNameGroup( [in] sequence<  string>      aItems )

Parameter aItems
a sequence containing the names of the items (members)
which will be part of the new group. Must be names of items contained in the 
current field.

but all i get is a IllegalArgumentExecption if i use for example:

Dim mGroup(1)

mGroup(0) = "category"
mGroup(1) = "region"
oField.createNameGroup(mGroup())

Are "category" and "region" items of the field oField? They sound more like field names.

Niklas
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@sc.openoffice.org
For additional commands send email to sy...@sc.openoffice.org
with Subject: help

Reply via email to