Why aren't you using our native Visual C++ tools? It would be a lot easier for you to integrate with SDI and MDI applications.
Anyway, with that said, I had no problem printing a CWGraph object on a FormView with the same code you send. What I suspect may be the problem is that you are trying to do the printing in a class other than the Form class. You may be trying to do the printing from the CMainFrame class. That would not work, since the CMainFrame does not have a m_CWGraph member. You have to do the printing in the Form class and you have to declare a member variable (m_CWGraph) for the CWGraph object. Other than that, I don't have any guesses why it wouldn't work for you.
Best Regards,
Chris Matthews
National Instruments