Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
16257 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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.



Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 25
1221
2
März 25
1372
4
Nov. 24
7090
1
März 24
2010
3
Sept. 23
24817