• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

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
0
qrt
Asked:
qrt
1 Solution
 
AlexFMCommented:
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
0
 
tinchosCommented:
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
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now