Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
16217 Представления

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
1204
2
мар. 25
1342
4
нояб. 24
7063
1
мар. 24
1982
3
сент. 23
24792