Hi,
I'm trying to print a page using below function:
hr = lpOleCommandTarget->Exec(NULL, OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,NULL, NULL);
But the problem is,it is always printing one copy only even if I give more than 1. I'm doing printer setup on top of it using CPrintDLg class as below:
CPrintDialog dlgl(FALSE);
INT_PTR userResult = dlgl.DoModal();
I'm doing it because I have some extra functionality based on the printer which I selected. Here I'm getting proper count but when I call lpOleCommandTarget->Exec(""), it is printing only one. So can any one suggest how can I pass number of copies to Exec("") function?
What I have tried:
<pre>hr = lpOleCommandTarget->Exec(NULL, OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,NULL, NULL);