- err = PMSessionBeginDocument(m_macPrintSession,
- m_printData.m_macPrintSettings,
- m_printData.m_macPageFormat);
+ err = PMSessionBeginDocument((PMPrintSession)m_macPrintSessionPort,
+ (PMPrintSettings)m_printData.m_macPrintSettings,
+ (PMPageFormat)m_printData.m_macPageFormat);