[python-win32] Windows printing with the use of Device Context

Antoine FINET afnetpf at gmail.com
Mon Nov 7 16:20:14 EST 2022


Hello,

I would like to print information at the correct coordinates on a pre
printed form.

If I understood correctly my readings, the coordinates given to a "TextOut"
Printer Device Context depend on the resolution of the printer. Am I right?
If it depends on resolution, how can I query the printer to know the
resolution and calculate the correct coordinates?

I don't have another printer to test but my underlying question is : does
the coordinates depend on the printer?

Kind regards,

Antoine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20221107/c40f149f/attachment.html>


More information about the python-win32 mailing list