protected void Advance()
{
if (!m_psettings.Collate)
{
AdvanceWhenNotCollating();
return;
}
// Check if all the pages in the range have been printed.
// .NET now handles multiple copies automatically when collation is on.
// Therefore, we only need to print one copy.
if (m_nextPageToPrint >= m_psettings.ToPage ||
m_nextPageToPrint >= m_totalNumberOfPages)
{
m_morePagesToPrint = false;
}
else
{
m_nextPageToPrint++;
}
}