Bernard Marcelly schrieb:

The parameter for character code can also be specified in clear with a string. For example IBM_850 is accepted.
Try simply UTF8 as in this example:
"FIX,34,UTF8,1,0/3/8/2/19/10"


Strange. I had tried it, just as a guess, and it hadn't worked (under Windows). But now under Linux it's ok. Probably I missed this one of all the possible capital/small/hyphened/underscored variations.

Thank you. But my initial question is partially open still. I don't find the way to insert such a file as a new sheet. I tried to record a macro and found the remmed(!) line
dispatcher.executeDispatch(document, ".uno:Insert", "", 0, a())
without any properties defined. I tried

sub InsertTest
dim document   as object
dim dispatcher as object
dim a(1) as new com.sun.star.beans.PropertyValue
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
a(0).Name = "FilterName"
a(0).Value = "Text - txt - csv (StarCalc)"
a(1).Name = "FilterOptions"
a(1).Value = "9,34,UTF8,1,1/2"
dispatcher.executeDispatch(document, ".uno:Insert", "", 0, mArgs())
end sub

and got the GUI dialog to insert a sheet. Understandable, as I have no path mentioned. What is the syntax for doing so? When I looked for an API method I only got to

insertNewByName([in] string aName,
                [in] short nPosition)

There is no means whatever to name a URL.

Can you help me to the spot?

Regards, Volker

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

Reply via email to