Click here to Skip to main content
15,921,905 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

How can i print multiline text in multipages by using OnPrint() from CFormView of SDI Application in mfc c++?

Any Help or Suggestion!!
Posted

Printing is nothing but drawing to a printer device context.
A page is controlled using the StartPage and EndPage APIs.
Whatever drawing code (TextOut) is between these APIs will be output to one page.
 
Share this answer
 
SuperMan,

I am able to get print data in one page. But if data is too long, then it is not coming in another page while Print Preview. Only first page data is printing.

I do want to print whole content of data in multi page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900