From 5eace63e8304ddd067e0412894f6cf455b62b750 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 28 Aug 2003 08:47:00 +0000 Subject: [PATCH] Added notes for OnPreparePrinting git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/print.tex | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/latex/wx/print.tex b/docs/latex/wx/print.tex index 50406337c1..19a28b38d6 100644 --- a/docs/latex/wx/print.tex +++ b/docs/latex/wx/print.tex @@ -907,9 +907,14 @@ is called once for every print job (regardless of how many copies are being prin \func{void}{OnPreparePrinting}{\void} -Called once by the framework before any other demands are made of the -wxPrintout object. This gives the object an opportunity to calculate the -number of pages in the document, for example. +Called once by the framework to allow the application to perform general +preparation tasks. + +In wxWindows 2.4, this function is called {\it 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. Unfortunately we cannot apply it to 2.4, +for binary compatibility reasons. \membersection{wxPrintout::OnPrintPage}\label{wxprintoutonprintpage}