Print problem

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Earned a small fee
Earned a small fee
Posts: 17
Joined: Tue Jan 25, 2005 12:05 pm

Print problem

Post by jab121 » Sun Apr 03, 2005 10:51 am

Im using wxGTK 2.4.2

In my wxPrintout class I have filled in GetPageInfo(..) with a system that works out the number of pages I will need.

This uses GetPPIScreen(..) and GetPPIPrinter(..), but these functions just return 0.

When I come to draw my graphics in OnPrintPage(..) these functions work properly.
What is the cause of this?

Thanks, James

ps. Is this something to do with Patch 781346? (see extract below). Sourceforge claims that this patch is MSW specific, so surely, I can't use it on wxGTK anyway?

"In wxWindows 2.4, this function is called after GetPageInfo is called, which is not ideal. In wxWindows 2.5, the function is correctly called before GetPageInfo is called. Please see Patch 781346 on SourceForge for a backport of this fix"

Post Reply