I have an app. which uses the "OnPreparePrinting" class.
in this function I set my max page i.e
pInfo->SetMaxPage(2), and then call
BOOL bRet = DoPreparePrinting(pInfo);
At this point when I run my app. my print dialog comes up where I choose my printer type, number of pages.. and then click on OK. Somewhere in the DoPreparePrinting, I get
an assertion failed error.
File: viewprnt.cpp line 211 which shows as follows:
I don't know how to get around this verify. I am not sure what I have to set in my pInfo struct. to get around this error.
Can anyone help?
Thanking you in advance,