|Configure a printer to save to file. Depending on the printer and driver you may get a text capture. You might try creating a generic printer.|
To intercept the data stream to the printer depends on the type of printer and the interface. Usb and parallel ports are more difficult than serial ports. Graphic and page mode are near impossible. Character mode printers are easier.