Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Seeking help in printing from a dialog

I have added CPageSetupDialog to my dialog-based app.
I want to print the data entered in the various edit boxes and such.

When I call the DoModal() method the proper print dialog comes up and I
click OK
but nothing ever prints. I have cut and pasted some examples from the MSDN
site, into
my program and nothing prints there, either.

So my questions are: - What am I missing?
- Within a dialog-based app, what is the
context of what would be printed and is that programmer defineable?

Thanks,
-Mark
0 Kudos
Message 1 of 2
(2,559 Views)
It's hard to say without seeing some code. Are you getting a printer device context anywhere, calling StartDoc/StartPage, drawing to the printer device context, calling EndPage/EndDoc, etc.? Take a look at the Measurement Studio for Visual C++ printing example and see if that helps. You can find it in the Examples\Ui\Common\Printing directory in your Measurement Studio installation directory.

- Elton
0 Kudos
Message 2 of 2
(2,559 Views)