I want to make a program which prints out (you know, to paper) some values. I need them to be in the right place because I have a pre-printed sheet with boxes which I have to fill with my own program's values. I can calculate where to print them based on a percentage system. I am using a TCanvas to draw all the text, however I cannot resize it to fit the paper's size. I got the paper's size in pixels with
h := Printer.PageHeight; w := Printer.PageWidth
but I cannot resize the canvas neither before nor after drawing. If I just use the PageHeight and PageWidth and don't care about canvas size then it causes a SIGSEGV exception. (at least I think it causes it)
Is there any way to work it around or should I take an other path instead of TCanvas? If the latter, what would you reccommend?