| View previous topic :: View next topic |
| Author |
Message |
timoffice Newbie

Joined: 01 Mar 2009 Posts: 2
|
Posted: Sun Mar 01, 2009 6:12 pm Post subject: Danny Brewer's DocConverter. Converting MS .doc to XHTML |
|
|
Hi.
I'm using OpenOffice 3.01.
I've been using DocConverter (http://www.ooomacros.org/user.php) to try to batch convert Microsoft word 2003 docuuments (.doc) to XHTML.
The converter is a macro and seems to work fine for .doc to HTML, but not to XHTML!
The macro fails with a meaningless error on this line:
| Code: | | oDoc.storeToURL( cDestURL, oExportOptions ) |
I think the oExportOptions is what's causing the problem.
It's set further up in the code:
| Code: | | oExportOptions = Array( MakePropertyValue( "FilterName", cExportFilter ) ) |
cExportFilter is set elswhere:
| Code: | | cExportFilter = "XHTML File" |
Can anyone shed some light on this? Or even suggest another way of batch converting multiple MS Word .doc files to XHTML?
Thanks,
Tim |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3533 Location: Hamburg, Germany
|
Posted: Mon Mar 02, 2009 12:47 pm Post subject: Re: Danny Brewer's DocConverter. Converting MS .doc to XHTML |
|
|
| timoffice wrote: | cExportFilter is set elswhere:
| Code: | | cExportFilter = "XHTML File" |
Can anyone shed some light on this? Or even suggest another way of batch converting multiple MS Word .doc files to XHTML? |
Where did you get that filter name from? At least in this list http://wiki.services.openoffice.org/wiki/Framework/Article/Filter/FilterList_OOo_2_1 it is called "XHTML Writer File". So give it a try. |
|
| Back to top |
|
 |
timoffice Newbie

Joined: 01 Mar 2009 Posts: 2
|
Posted: Mon Mar 02, 2009 1:38 pm Post subject: You're right! |
|
|
That's exactly what the problem was.
Well done!
So, for anyone using DocConverter to create XHTMLs, change this line of code to make it work!
Thanks,
Tim |
|
| Back to top |
|
 |
|