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 (as CView
pointers), but it gets very messy for a few reasons: - each view must be cast to its RUNTIME_CLASS
and checked to find which it is, so that its OnPrint
function can be called - each view has different scaling, so a single CPrintInfo
won't suffice - its not known in advance how many pages to set, but this can be overcome with m_bContinue
checks. Any suggestions on how to print a single document multiple views please? Thanks!
C
cc caprani
@cc caprani
Posts
-
MFC Printing of multiple views for a single doc