Forum > LazReport

[tip] How to simulate odd / even band background

(1/1)

rnervi:
place an empty memo UNDER items on the band
edit his memo script:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---if ([LINE#] mod 2) = 1 then  memoxx.fillcolor := clwhiteelse  memoxx.fillcolor := clSilver; 

(memoxx = memo name)
et voilĂ .

Navigation

[0] Message Index

Go to full version