private void AdvanceWhenNotCollating()
{
m_copiesPrinted++;
// Check if all the copies of this page have been printed.
// .NET does not handle multiple copies for you when collating is turned off.
// Therefore, we need to explicitly print all of the copies of each page.
if (m_copiesPrinted >= m_psettings.Copies)
{
// If we've printed all the pages, then we're done. Otherwise
// move to the next page
if (m_nextPageToPrint >= m_psettings.ToPage ||
m_nextPageToPrint >= m_totalNumberOfPages)
m_morePagesToPrint = false;
else
{
m_nextPageToPrint++;
m_copiesPrinted = 0;
}
}
}
#endregion