There are a lot of options to get what printed from program.
Easiest way, text printing. But modern programs print images, not text. So this possible not an option for your problem.
Second way, print to file. After printing need to OCR file and extract text.
Third way, using print preprocessors, if you still need print data, but need on each print need extract data.
Fourth way, enable saving print queue. After each print windows will save file which one could be OCR. Same benefits as preprocessor.