Hi all,
Well, I read all the story. Frank Millman is trying to do
what I tried several times without success.
I'm still thinking, that this is impossible at the present time.
Frank wrote:
Actually I don't think my workaround is too bad. Point size does not mean
too much to a user, but lines per page does. If I can get the height of the
font, I can divide it into the page size (adjusting for margins) and
calculate lines per page. I would not do this every time a report is run. I
would do it at the point of defining the printer, and then store the results
in a database and retrieve them at printing time.
This is one of the tricky points. Unfortunatelly, this is not
feasible in a general way, however it is possible for a given printer
(as explained in the wiki article)
I think, the simple way to do the job done is to use wx.HTMLEasyPrinting.
But in that case, you should be aware that previewing will not fit the output.
Feel free to ask if you need more info.
Jean-Michel Fauth, Switzerland