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".

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

This doesn't seem to make a difference to my problem however. Just mentioning it.

I'll try the codesnippet suggestions & report back.

Cheers

Frank

begin:vcard
fn:Dr. Francis Jones
n:Jones;Dr. Francis
org:EduLink China
adr:36 Furongjiang Road;;Suite 202-203;Shanghai;;200336;China
email;internet:[EMAIL PROTECTED]
title:Head Programme Director
tel;work:+86-21-6275-5173
tel;fax:+86-21-6270-0825
tel;cell:+86-136-0166-3070
version:2.1
end:vcard


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

Reply via email to