Forum > FPC development
Using fpSptreadshet in Free Pascal?
dseligo:
In addition what Tron wrote.
The example I posted was compiled under Free Pascal IDE.
FPspreadsheet is placed in my user directory in fpc/fpspreadsheet directory and lazutils is under fpc/lazutils directory.
In Free Pascal IDE I added three lines in 'Options/Directories'.
In 'Options/Directories/Units' I added:
--- Code: Text [+][-]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";}};} ---../fpc/fpspreadsheet/source/common../fpc/lazutils
And in 'Options/Directories/Include files' I added:
--- Code: Text [+][-]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";}};} ---../fpc/fpspreadsheet/source
Lazarus developers don't want to change C style operators to Pascal in file lazutils/lazutf8.pas, so you have to either turn on compiler option 'C like operators' or change Result+= to Result := Result + in 5 places in that file.
Navigation
[0] Message Index
[*] Previous page