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 Francis Jones wrote: > Hi All, > > I have a lot (a few hundred today, and more later) of OOo documents that > I want to convert into PDF. > > They are all in one directory, and I would like OOo to cycle through > that directory and then create one .pdf file (with the same root name) > for each .odt file. Alternatively (and I had done this with 1.9.x) I > would like to write a macro which converts a single odt document to pdf. > > There are a number of tutorials out there which show how to do this, and > this is what I had followed previously. e.g., DannyB on oooforum had a > macro that worked, and you can find a similar one in Andrew Pitonyak's > macro document. There's also a really nice gui document created by > Laurent GOdard (http://oooconv.free.fr/batchconv/batchconv_fr.html) > which looks like it does exactly what I want. > > Although I tried several of these macros and they worked with 1.9.x, now > with 2.0.2... in every case, I get an error. Can anybody help, or point > out a resource containing an example for doing this? > > Thanks, > > Frank Jones > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature
