Francis Jones wrote:
> Peter Eberlein wrote:
> 
>> Hi,
>>
>> Tom Schindl schrieb:
>>
>>> Hi,
>>>
>>> if you don't show us the error you are getting we are lost. But if need
>>> a example of how one can convert documents this codesnippet does exactly
>>> that. You simply have to code the loop fetching all documents in a given
>>> directory.
>>>
>>> http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip
>>>
>>>
>>> Tom
>>>
>> There's a bug in 2.0.2 which prevents converting in hidden modus.
>> Change the load property to hidden=false and it will work.
>>
>> Peter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> Hi Tom, Peter
> 
> Sorry to not have given an error message --- it's just that I had tried
> quite a few different macros and they gave various different errors.  So
> I thought it would just be confusing and so opted for the "does anyone
> have something that works" approach.
> 
> By the way, in my debugging of this (which is done on a WinXP system
> with OOO 2.0.2, as well as yesterday's snapshot) I noticed that the
> function ConvertToURL is a bit weird.
> 
> If I give it a filename like "C:\tmp\test\1234.odt", then it produces as
> a URL "file:///C:/tmp/test/1234.odt".
> 

That's correct:
file:// ... the protocol part
/ ... root of your filesystem

> Is that right?  There are 3 slashes after "file:"; I had thought it
> should be "file://C:/tmp/test/1234.odt"

This would mean realtive from your actual position which might work on
win32 where you have drives but not on *NIX.

Tom

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to