Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Printing contents of Window programmatically from VC++/MFC

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.


Sign In or Register to comment.