mderie 1 Posted July 13, 2023 Hi, I'm trying to perform something which should be basic : I want to print a given form content. But wait, with the border and title. So not only the ClientArea... So "self.print" is not enough ! I'm trying to play with the PrintWindow API but no luck till now. Any clue ? Thanks in advance Regards. Share this post Link to post
Lars Fosdal 1792 Posted July 13, 2023 Does this code still work? https://stackoverflow.com/questions/23410377/delphi-active-window-screenshot Once you capture the window as a bitmap, then you can print. Share this post Link to post
mderie 1 Posted July 13, 2023 (edited) Well indeed, it does the trick (I've just have to implement the ratio / make it fit)... Using this : https://www.swissdelphicenter.ch/en/showcode.php?id=744 Many thanks NB : very fast and accurate answer by the way :) Edited July 13, 2023 by mderie Share this post Link to post