I'm trying to insert an Input List through XDispatchHelper... Does anyone know 
which ".uno:..." code is it?

I looked for it in a macro and it says it's ".uno:InsertField", but that's the 
Input Field, isn't it?


This is what I get when I look at the macros I did for testing:

---> For the INPUT LIST:
dim args1(5) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Type"
args1(0).Value = 42
args1(1).Name = "SubType"
args1(1).Value = 0
args1(2).Name = "Name"
args1(2).Value = "1"
args1(3).Name = "Content"
args1(3).Value = "aaaaÿbbbbÿcccc"
args1(4).Name = "Format"
args1(4).Value = 0
args1(5).Name = "Separator"
args1(5).Value = " "

dispatcher.executeDispatch(document, ".uno:InsertField", "", 0, args1())

---> For the INPUT FIELD:
dim args2(5) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Type"
args2(0).Value = 16
args2(1).Name = "SubType"
args2(1).Value = 1
args2(2).Name = "Name"
args2(2).Value = ""
args2(3).Name = "Content"
args2(3).Value = "2"
args2(4).Name = "Format"
args2(4).Value = 0
args2(5).Name = "Separator"
args2(5).Value = " "

dispatcher.executeDispatch(document, ".uno:InsertField", "", 0, args2())

By the way "aaaa","bbbb","cccc" are the items on my list... "ÿ" is the way to 
separate them? Sounds strage to me...

Joan

This e-mail may contain confidential or privileged information. Any unauthorised
copying, use or distribution of this information is strictly prohibited.

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

Reply via email to