Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++

I was able to find how to set the From and To page numbers in the Print Dialog,
but I haven't been able to find out how to set the number of copies to anything other then 1.

here is one of the many iterations I have tried:
CPrintDialog dlg(FALSE);
dlg.m_pd.Flags &= ~PD_DISABLEPRINTTOFILE;
dlg.m_pd.Flags &= ~PD_HIDEPRINTTOFILE;
dlg.m_pd.nCopies = 3; // --- doesn't work

if( pApp->DoPrintDialog(&dlg) == IDOK )
{
}

but alas, nothing changes.


I have a gold star for your forehead, if you can help me.
Matt Orton
Posted

1 solution

Some info here: PRINTDLG structure[^] (see nCopies explanation).
 
Share this answer
 
Comments
Maciej Los 16-Jul-14 17:05pm    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900