Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
16232 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 25
1210
2
бер. 25
1349
4
лист. 24
7070
1
бер. 24
1986
3
вер. 23
24809