Link to home
Start Free TrialLog in
Avatar of qrt
qrt

asked on

How can I print more than one page in Visual C++

I need to print more than one page at time in visual C++, I can print only one page.

There are any examples?

Thankyou QRT
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexFM
AlexFM

If you are using MFC and Doc-View, set number of pages in OnBeginPrinting:

pInfo->SetMinPage(1);
pInfo->SetMaxPage(n);

After this OnPrint function is called n times.


Printing in MFC without Doc-View:

http://www.codeguru.com/printing/printing_wo_docview.shtml
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: mayankeagle

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer