Pywin32 wraps most of the GDI functions used to draw lines and text directly on a printer device context. Many of them are only implemented as methods of MFC objects rather than exposed directly.
See \win32\Demos\print_desktop.py for some examples of working directly with a printer DC. hth Roger "Michael Galvin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To see an example of what I am trying to accomplish, look at this page > on my personal website: > > http://mysite.verizon.net/michaelgalvin/jan06call.html > > I now realize my attachement could not be posted on this usenet group. > > On Thu, 12 Jan 2006 12:16:02 -0500, Michael Galvin > <[EMAIL PROTECTED]> wrote: > >>I am trying to use Python to send to the printer a calender filled >>with a mix of text and simple graphics. I want to draw on the printed >>page something like a table with 6 rows and 7 columns to represent a >>calendar. I want to place text precisely within those boxes on the >>printed page. I am using Python 2.4 on Windows XP >> >>I was in the past able to do this within Visual Basic using its >>printer object. Visual Basic's printer object uses a coordinate >>system to allow you to draw lines and to place text on the printed >>page precisely. I have attached a file "jan06call.jpg" to this message >>to illustrate what I am trying to do. >> >>Does Python have a module which would help me do this? >> >>To put it another way, can Python control the placement of text and >>graphics precisely on the printed page? >> >>I have scoured my Python programming texts, python.org, and this >>usenet group without success. Mark Lutz's wonderful book "Programming >>Python" has not one reference to the word "printer" in its index. >>Surely, I must be overlooking something or thinking about this wrong. >> >>Michael Galvin >>Muskegon, MI ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- -- http://mail.python.org/mailman/listinfo/python-list