跳至內容
選單
此問題已被標幟
2 回覆
16268 瀏覽次數

how i can put a div in the bottom of the last page of a qweb pdf report?

頭像
捨棄
最佳答案

Hi Jesús Ventosinos,

This is doable in QWEB report too!

You have to extend (Override) subset function which is defined in 'report' module.

You have to add piece of code inside the subset function : static/src/js/subst.js

var operations = {

'bottom-page': function (elt) { elt.style.visibility = (vars.page === vars.topage) ? "visible" : "hidden"; },

};

for (var klass in operations) {

var y = document.getElementsByClassName(klass);

for (var j=0; j<y.length; ++j) operations[klass](y[j]);

}

<div class="bottom-page">

This content will dislpay only in last page.. now you can add this div where you want.. header ,body or footer it will display on last page only.

<div>

Hope this will helps.

Regards,

Anil.



頭像
捨棄
最佳答案

This is a problem that is difficult to resolve, see similar post

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
1232
2
3月 25
1396
4
11月 24
7097
1
3月 24
2027
3
9月 23
24832