By: Arnold
Date: 2013-12-10
Time: 15:41
|
images not merged on page per record
Hello,
i'm using openTBS 3.8.2.
my templates has:
-----------------------------------
[data.name;block=tbs:page;]
etc...
image with description: [data.image;ope=changepic;tagpos=inside;adjust=100%;default=current;]
etc..
----------------------------------
my php script is:
---------------------------------
$data = array(0,1,2,3);
$data[0] = array(name=>'myname',image=>'path/to/file.png');
$TBS = new clsTinyButStrong;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$TBS->LoadTemplate($template);
$TBS->MergeBlock('data',$data);
$TBS->Show(OPENTBS_DOWNLOAD, "merged_document.docx");
---------------------------------
but i get an error:
parameter 'att' makes this fied moving forward over another TBS field
this only happens when i'm using a page per record (add block=tbs:page to the first field)
when this is deleted the image is perfectly replaced.
but it only merges the first $data array (i only get one page).
|
By: Arnold
Date: 2013-12-12
Time: 13:24
|
Re: images not merged on page per record
update.
when setting $TBS->SetOption('noerr',true); |
only the first record is processed. one image replaced, one page created.
the first following page the mergefields before the image are changed correct.
but it halts at the image.
|
By: Arnold
Date: 2013-12-12
Time: 16:30
|
Re: images not merged on page per record
Okey solved it. well sort off.
the new option (putting the mergefield inside the description) doesn't work (docx with libreoffice).
so i've gone back to the <1.8.0 option and put the merge field below the image.
btw it was tinybutstrong version 3.8.2 and opentbs 1.8.1.
|
By: Skrol29
Date: 2013-12-13
Time: 03:03
|
Re: images not merged on page per record
Hi,
It may be the way LibreOffice saves DOCX. I'll check that.
|
|
Posting in progress.
Please wait...
|