+ PMRect rPaper;
+
+ err = PMGetAdjustedPaperRect((PMPageFormat)m_printData.m_macPageFormat, &rPaper);
+ if ( err != noErr )
+ {
+ message.Printf( "Print Error %ld", err ) ;
+ wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
+ dialog.ShowModal();
+ #if TARGET_CARBON && PM_USE_SESSION_APIS
+ UMAPrClose(&m_macPrintSessionPort) ;
+ #else
+ UMAPrClose(NULL) ;
+ #endif
+ m_ok = FALSE;
+ return;
+ }
+ m_maxX = rPaper.right - rPaper.left ;
+ m_maxY = rPaper.bottom - rPaper.top ;