?
Solved

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

Posted on 2003-03-20
3
Medium Priority
?
266 Views
Last Modified: 2010-04-01
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
Comment
Question by:qrt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 2000 total points
ID: 8172545
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 8172576
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
 
LVL 9

Expert Comment

by:tinchos
ID: 9510675
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question