#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
+#include "wx/generic/progdlgg.h"
#include "wx/paper.h"
#include <stdlib.h>
// wxWin macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxPostScriptPrinter, wxPrinterBase)
IMPLEMENT_CLASS(wxPostScriptPrintPreview, wxPrintPreviewBase)
-#endif
// ============================================================================
// implementation
return FALSE;
printout->SetIsPreview(FALSE);
- printout->OnPreparePrinting();
+
+ // 4/9/99, JACS: this is a silly place to allow preparation, considering
+ // the DC and no parameters have been set in the printout object.
+ // Moved further down.
+
+ // printout->OnPreparePrinting();
// Get some parameters from the printout, if defined
int fromPage, toPage;
// Create an abort window
wxBeginBusyCursor();
+ printout->OnPreparePrinting();
+
int
pagesPerCopy = m_printDialogData.GetToPage()-m_printDialogData.GetFromPage()+1,
totalPages = pagesPerCopy * m_printDialogData.GetNoCopies(),
totalPages,
parent,
wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
-
+
printout->OnBeginPrinting();
bool keepGoing = TRUE;