Printing a Chart in a Dialog
The SREGraphView and SREScrollView classes can print their content from inside the dialog or form view. A virtual function, Printing(), is provided to handle a print command. Printing() displays a page setup dialog and calls OnFilePrint(). It also creates a dummy CDocument object to avoid assertions within the MFC printing system.
If you need to customize the printing system, you can either override the OnFilePrint() command handler or override the Printing() function.