Categories > [old] TbsOoo & TinyDoc >

TBS with docx (Word2007)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: SunWuKung
Date: 2006-10-10
Time: 13:13

TBS with docx (Word2007)

Just wanted to say that with a few small changes I could make TBSoo work with both Oo and docx files. I can upload what I did if you tell me where to - although I really don't know php or programming in general so my code is ugly.

SWK
By: Olivier Loynet
Date: 2006-10-10
Time: 16:18

Re: TBS with docx (Word2007)

Hi,

Thanks for your suggestion.
Can you send it directly to tbsooo@free.fr to have a look

Regards,
Olivier
By: SunWuKung
Date: 2006-10-13
Time: 08:55

Re: TBS with docx (Word2007)

Hi,
I have sent you the mail to the address you gave.

Regards,
SWK
By: SunWuKung
Date: 2006-10-13
Time: 12:35

Re: TBS with docx (Word2007)

I couldn't find a way to pass False as the parameter for HtmlCharSet in $TBS->LoadTemplate(string File{, string HtmlCharSet}).

tbsoo is doing:
LoadTemplate($this->_ooo_basename.'/'.$this->_xml_filename, '=~_CharsetEncode')

Withouth setting HtmlCharSet to False all \n will be converted to <br /> which makes the docx unreadable with a file format error.

SWK
By: Skrol29
Date: 2006-10-16
Time: 16:07

Re: TBS with docx (Word2007)

Hi SWK,

We're working on a TBS plug-in for tbsOOo which will also do more easilly other ODF files.
It is still in development, we cannot say when it will be ready.

By: SunWuKung
Date: 2006-10-18
Time: 19:03

Re: TBS with docx (Word2007)

Great,
I can process my templates now with my housemade solution, so I am happy.
My longer term suggestion is to include docx in your 'marketing'. Filter for docx files will be pushed for previous versions of Word from MS (autodownloaded, redirected to, etc.) so I - sadly - think that it will be used by more people than ODT files. Since you can use the same process with docx than with Oo and reach a much wider user base I think you will find many more users of TBS after people realise this.

Best wishes.
SWK