MFC Printing of multiple views for a single doc
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have a single doc multiple views app in a tabbed view type mainframe. I have printing working nicely for each view on its own, but I need to print all views in one 'report'. I started by adding a "Print All" command in
CMainFrame
, and then traversing all document views (asCView
pointers), but it gets very messy for a few reasons: - each view must be cast to itsRUNTIME_CLASS
and checked to find which it is, so that itsOnPrint
function can be called - each view has different scaling, so a singleCPrintInfo
won't suffice - its not known in advance how many pages to set, but this can be overcome withm_bContinue
checks. Any suggestions on how to print a single document multiple views please? Thanks!