Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on MDI Application which has all views as CFormView Derived.
On one of view there is graph displayed which needs to be printed.
I overridden all necessary functions like OnBeginPrinting,OnPrint etc.
But these functions did not get called.Please Help
Posted

According to the documentation[^] this function gets called to print each page. Are you sure that you have initialised the print parameters correctly?
 
Share this answer
 
Comments
adityarao31 2-Jan-13 4:54am    
Dear Friend your answer seems not to be correct as Print Dialog also does not appear after calling OnFilePrint
Richard MacCutchan 2-Jan-13 5:18am    
I did not give you an answer; I asked a question. And you have not shown any of your code so we cannot guess what may be happening in your program.
I added line CView::DoPreparePrinting in OnPreparePrinting Function as suggested in some other site and things worked
 
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