Printing problem

Thanks robin,
I automated word with win32com, and had no problems with the text, but
the whole doc was in one font size, and I'm not sure how to edit every
single part of the doc :S... I'll try to work sth out...
Btw could you give me a brief explanation on using the print framework
(positioning and stuff)?!

Thanks
Zvonko

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, January 16, 2006 7:58 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Printing problem

Grujo wrote:

Hi
I'm working on a 'school application' (school database and stuff) for
windows, and one of the things that the app needs to do is to print
reports for pupils... the problem is that the report is a certified
document with empty lines which need to be fulfilled by the app... I
tried the htmleasyprinting but there's no way to put every word on

it's

place :S then I tried wxprintout but I couldn't make it work... I've

got

a perfect template written in Microsoft Word, so I'm wondering if

there

is a way to print it via wxpython, but that brings one more problem:

how

could the app replace the template's text with my text?!

If you want to go that route you can automate Word via win32com,
including manipulating the document and printing it. Or there are tools

like ReportLab that let you make PDF files from Python.

On the other hand, you should be able to get fairly accurate positioning

with the Print framework, you just need to set the scale factors right
and take into account the margins, paper sizes, etc.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date:
14.1.2006

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date:
14.1.2006