Questions tagged [tinybutstrong]

TinyButStrong is a template engine for PHP.

TinyButStrong is a template engine for PHP. It can merge not only HTML, but also XML, text, and any textual source by the technical of template. Provided in a single file, TinyButStrong is a brick in your application, and can be inserted in any framework. It can thus cover only one feature or being a central component of your application.

TinyButStrong can be empowered by the plug-in OpenTBS in order to merge OpenOffice, LibreOffice and Microsoft Office documents.

159 questions
0
votes
1 answer

Trying to merge a picture into an OpenTBS template fails with "failed to found the picture" (sic)

Im using OpenTBS to merge data from PHP into a word template. All the normal variables merge fine, however I fail to succeed at merging an image file. The placeholder for my image in my Word file looks like this: [onshow.logo;ope=changepic] When…
stemiwe
  • 5
  • 2
0
votes
2 answers

TinyButStrong update for PHP 8.1?

I've recently updated our server to PHP 8.1 and the latest version of TinyButStrong. The latter now throws a fatal error: PHP Fatal error: Cannot acquire reference to $GLOBALS in U:\ivojoadmin\tinybutstrong3\tbs_class.php on line 713 The line in…
KDavies
  • 23
  • 3
0
votes
0 answers

Why does the OpenTBS_DOWNLOAD command is not generating a file

I am new to openTBS, I tried the html and php code from 'https://www.tinybutstrong.com/opentbs.php?demo' and 'https://www.tinybutstrong.com/plugins/opentbs/demo/demo_merge.php', and I can't manage to get the "$TBS->Show(OPENTBS_DOWNLOAD)" command…
Rvingt4
  • 1
  • 1
0
votes
1 answer

Merge different .pptx files into one

I am trying to merge different .pptx files into one. That is, I have templates for each slide, I am able to modify MergeBlock and MergeField but I don't know how to join all the .pptx files into one. Please someone who has done it and can help…
0
votes
1 answer

How can I output a comma separated string of values with opneTBS

using openTBS (in the SugarCRM plugin MailMergeReports) and I have the following in my Word template. [a_sub5;block=w:p;nodata] No States [a_sub5;block=w:p][a_sub5.name] This works fine as far as it goes - it outputs a single state name per line -…
bcaverly
  • 11
  • 2
0
votes
3 answers

OpenTBS - read docx properties

Is there a way to access docx properties once an OpenTBS template is loaded? $TBS->LoadTemplate($template, OPENTBS_ALREADY_UTF8); I know that I could open the docx as a zip, access core.xml in docProps and parse the content to find for instance the…
Marco
  • 1
0
votes
1 answer

merge field not Merge data in word document by TinyButStrong

I am using TinyButStrong for merge data in docx file. I have do same example data. For this i have write below code: =0) { …
0
votes
1 answer

(TBS) TinyButStrong How to use Multiple 'when' for a block ? Example when [hasHouse] = 1 and [name] = 'bob'

So I have a block and I want to use the 'when' condition, I tried using but got no results. If I just leave one of the conditions i get back results, but I dont get back anything if I use both, and would it be possible to add more conditions…
Roberto Mejia
  • 53
  • 1
  • 9
0
votes
1 answer

how can we edit chart data in excel worksheet from a ppt generated by tbs?

We have one empty chart and we are loading via tbs and plotting the graph, everything works fine when we open the newly created ppt and try to edit chart data in excel (Edit data in excel) it's empty, we don't see any coordinate available. is this a…
mks
  • 351
  • 1
  • 3
  • 16
0
votes
1 answer

TBS tiny but strong: how to recursively fill in data

I use openTBS to parse an invoice template. The invoice address is supplied via a custom function. I would like to conditionally more information to the filled in data. I was thinking of permitting the invoice address (the filled in data) to contain…
patmin
  • 117
  • 1
  • 10
0
votes
1 answer

can we delete slides with multiple range using opentbs?

currently we are doing this, which is working fine, but i was trying to delete slide with multiple range $slides_to_deletea = range(3, $num_slides); $TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea); can we delete multiple slide from…
mks
  • 351
  • 1
  • 3
  • 16
0
votes
0 answers

How can replace content in a document file with another document text, image and table in PHP?

I have to replace the content of a document result.docx with another document server.docx. I have implemented the PHP code. I used the tinybutstrong plugin to develop functionality. But there is a problem. Image and Table from server.docx are not…
Sarath TS
  • 2,432
  • 6
  • 32
  • 79
0
votes
0 answers

tinybutstrong - opentbs - colspan in excel

(Sorry my poor english) I have data: [ 'mainGrp1'=>['subGrp1.1'=>[1,2,3],'subGrp1.2'=>[a,b,c],'subGrp1.3'=>[4,5,6]], 'mainGrp2'=>['subGrp2.1'=>[1,2,3,4,5],'subGrp2.2'=>[a,b,c,d,e]], 'mainGrp3'=>['subGrp3.1'=>[1,2]] ] I like this result: excel…
Apuka73
  • 3
  • 1
0
votes
1 answer

subblock create xlsx with opentbs?

Hello I hope you can help me. I am trying to use sub-blocks with the following array that you come from 2 mysql queries. $data[$i]= array( "ref"=>$row['ref'], "label"=>$row['label'], "unidad"=>$row['cu_label'], "rawdata" => array( …
0
votes
0 answers

Can you use the OPENTBS_EDIT_ENTITY to change Word settings?

I use the OPENTBS_EDIT_ENTITY 'word/settings.xml' to change the updateFields setting currently in Word and that has always worked great. Could I also use that for settings like turning view table gridlines on/off, setting print layout view, and…
Katybird
  • 1
  • 2