+ dialog.ShowModal();
+ ::PrClosePage( m_macPrintPort ) ;
+ ::PrCloseDoc( m_macPrintPort ) ;
+ ::UMAPrClose() ;
+ ::SetPort( macPrintFormerPort ) ;
+ m_ok = FALSE ;
+ }
+#else
+ #if PM_USE_SESSION_APIS
+ err = PMSessionBeginPage(m_macPrintSession,
+ m_printData.m_macPageFormat,
+ nil);
+ #else
+ err = PMBeginPage(m_macPrintPort, nil);
+ #endif
+ if ( err != noErr )
+ {
+ message.Printf( "Print Error %d", err ) ;
+ wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
+ dialog.ShowModal();
+ #if PM_USE_SESSION_APIS
+ PMSessionEndPage(m_macPrintSession);
+ PMSessionEndDocument(m_macPrintSession);
+ UMAPrClose(&m_macPrintSession) ;
+ #else
+ PMEndPage(m_macPrintPort);
+ PMEndDocument(m_macPrintPort);
+ UMAPrClose() ;
+ #endif