Categories > OpenTBS with DOCX >

Error if open the files

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: mpol_ch
Date: 2013-05-12
Time: 18:14

Error if open the files

Hello

I am receiving error message when I open the file with $TBS->Show(); For both OpenOffice and MSWord.

But I when I use the $TBS->Show(OPENTBS_FILE, "vorlagen/lomo_$nummer.doc"); to save the files then it works perfectly.

Where should I check?

Thanks
mpol_ch
By: Skrol29
Date: 2013-05-12
Time: 18:17

Re: Error if open the files

And what is the error message ?
By: mpol_ch
Date: 2013-05-12
Time: 18:47

Re: Error if open the files

It is in german.
"Die Datei 'vorlage-11' kann nicht geöffnet werden, da ihr Inhalt Probleme verusrsacht" Wenn I click on "Details" Then get " Die Datei ist beschädigt und kann nicht geöffnet werden". It means that File is damaged and can not be opened.
When I click on "OK" then I receive " Von Word  wurde nicht lesbarer Inhalt ..." it means that Word founds unreadeable content... When I sa Ok. The I get the content with some missing formating information. All content from MySQL is to see.

When I save it on the webserver then everything works good. Only When I try to open  with $TBS->Show();

** I disabled the option regarding trusting under Word Options. I am using MS-Office 2010.
Thanks
mpol_ch
By: Skrol29
Date: 2013-05-13
Time: 00:04

Re: Error if open the files

I guess you have this error message when you try to open the merged document with Ms Word.
When you say " When I try to open  with $TBS->Show();", i guess you mean: "after I have merged the document with $TBS->Show()".

If it's so, then the merging has probably produced an error message, and this error message has corrupted the DOCX file.
The the debugging section of the manual to find how to point on the error.
http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html#debug