0

I'm trying to format numbers in an Excel file using PHP and opentbs.

Here's template code I'm working from:

[gross_pay_names;block=begin;sub1=departments][gross_pay_names.name]
[gross_pay_names_sub1;block=begin]
[gross_pay_names_sub1.val; ope=tbs:num] 
[gross_pay_names_sub1;block=end]
[gross_pay_names;block=end]     

The problem is in the third line:

[gross_pay_names_sub1.val; ope=tbs:num]

It always renders with an apostrophe in the beginning ('0.00). So I can't use it in other formulas in the file.

4

1 回答 1

1

好的,我自己找到了解决方案。如果将来有人需要它,这是我最终使用的模板代码:

[gross_pay_names.name;block=tbs:row;sub1=departments]   [gross_pay_names_sub1.val;block=tbs:cell;ope=tbs:num]
于 2017-03-24T22:03:29.777 回答