Hi,

I tried the parameters "Name", "Index", "URL" and some more, but they didn't
work.
I'm not sure, but could it be 3 parameters? The file, the position to insert
and the
sheet which shoud be inserted. Is there maybe another solution to insert a
table into another sheet?

Here's some example code:
Sequence<PropertyValue> args1(2);
args1[0].Name = OUString::createFromAscii("Name");
args1[0].Value <<= OUString::createFromAscii("file:///C:/asd.ods");
args1[1].Name = OUString::createFromAscii("Index");
args1[1].Value <<= 1L;
rDispatchHelper->executeDispatch(rDispatchProvider,
       OUString::createFromAscii(".uno:InsertSheetFromFile"),
       OUString::createFromAscii(""),
        0,
        args1);

Regards, Michael

On 3/29/07, Carsten Driesner <[EMAIL PROTECTED]> wrote:

Michael Jeier schrieb:
> Hi there!
> I want to know something specific about the dispatcher command
> "InsertSheetFromFile". It should work like this:
>
> dispatcher.executeDispatch(document, ".uno:InsertSheetFromFile", "", 0,
> Array())
>
> Now, that's fine, but there's absolutely no documentation whatsover of
how
> to fill that fourth array parameter. The array should be filled with
> PropertyValue-
> Objects which take Name and Value variables. But absolutely nowhere is
> described
> what should actually be in there.
>
> Can anybody help me on this??
Hi Michael,

The command ".uno:InsertSheetFromFile" (FID_INS_TABLE_EXT) supports two
arguments.

Name  Type   Internal define
----------------------------
Name  String FID_INS_TABLE
Index long   FN_PARAM_1

I think, although I am not sure, the parameter "Name" specifies a file
URL referencing the spreadsheet document. I hope that someone from the
Calc team can give you more information.

Regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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


Reply via email to