Categories > OpenTBS with DOCX >

Method LoadTemplate (OpenTBS) does not load template file correctly

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Meri
Date: 2015-12-11
Time: 14:44

Method LoadTemplate (OpenTBS) does not load template file correctly

Hello,

I have a problem, i'm using TBS with SugarCRM.
In one version of SugarCRM (version 6.5) my code is working fine, for SugarCRM 7.6 de code is not always working. in both SugarCRM versions TBS =  3.9.0 en OpenTBS = 1.9.4

the template file was loaded by a user and saved on the filesystem without extention.  the code in general is as follows:

get the file from the filesystem in var $file
        $this->TBS_document = new clsTinyButStrong;
        $this->TBS_document->NoErr = TRUE;
        $this->TBS_document->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$this->TBS_document->LoadTemplate($file, OPENTBS_ALREADY_UTF8);

Here is where things go wrong in SugarCRM 6.5 the template file $file is loaded completely. In SugarCRM 7.6 it is not loaded completley.
there are no errors in the apache error log, php error log and with de debug option available for OpenTBS also get no errors but see that in SugarCRM 7.6 the template file is not loaded completely.

Do you have any idea what could be interfering with the LoadTemplate process?
Please Help!

thx
By: Meri
Date: 2015-12-14
Time: 16:44

Re: Method LoadTemplate (OpenTBS) does not load template file correctly

Never mind, found an error in de code, corrected it, and now it works!!
By: Skrol29
Date: 2015-12-16
Time: 10:56

Re: Method LoadTemplate (OpenTBS) does not load template file correctly

ok