0

I'm trying to print a XLSX file with OpenTBS. The issue us that I can't get the last row printed. Instead, OpenTBS just let the code ([base_sub2_sub1.respostas_dadas]) stay there, on the merged file.

[base;block=begin;sub1=answers;sub2=possible_answers;sub3=companies]
[base_sub1.question_code] - [base_sub1.questions;block=tbs:cell]
[base_sub3.name;block=tbs:row;sub1=answers_company] [base_sub3_sub1.answers;block=tbs:cell]
[base_sub2.answer;block=tbs:cell;sub1=total_answers]
[base_sub2_sub1.respostas_dadas;block=tbs:cell]
[base;block=end]


[base;block=row+row+row+row+row+row+row;sub1=answers;sub2=possible_answers;sub3=companies]
[base_sub1.question_code] - [base_sub1.questions;block=tbs:cell]
[base_sub3.name;block=tbs:row;sub1=answers_company]    
[base_sub3_sub1.answers;block=tbs:cell]
[base_sub2.answer;block=tbs:cell;sub1=total_answers]
[base_sub2_sub1.respostas_dadas;block=tbs:cell]

A screenshot from the template: enter image description here

I already checked the data from mysql and it's all there.

Any help?

4

1 回答 1

2

该标签[base_sub2_sub1;...]没有被合并,因为它在“base_sub2”块之外,所以它不能是“base_sub2”的子块。

块“base_sub2”是在一个单元格上定义的,而块“base_sub2_sub1”是在一行上并在“base_sub2”下面定义的。

您必须更改“base_sub2”的界限。


我有一个关于在 OpenTBS 中使用显式语法“block=begin”和“block=end”的评论。这种语法可能会以意想不到的方式拆分内部 XML。最好将 TBS 标签扩展为可见实体,以避免内部分裂。

所以有你的选择:“块=行+行+行+行+行+行+行”。

但您也可以使用:

[base;block=begin;enlarge=tbs:row;...]
...
[base;block=end;enlarge=tbs:row]
于 2014-12-03T16:41:26.227 回答