Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Printing contents of Window programmatically from VC++/MFC Posted by nprobert on 14 Jan 2003 at 5:10 PM
Doesn't seem to be a simple call to do this, except from VB. The code is already written which prints the contents of a Window, but it isn't quite right.

1. If I use CPrintDialog and call DoModal() and change anything in printer properties (like select Landscape), the dialog itself gets printed. Otherwise, it's okay.

2. So I don't call DoModal, but call GetDefaults() it works okay, but
I cannot find a way to set it to Landscope mode.

Anybody?





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.