我只会用CDatabase类和CRecordset类

解决方案 »

  1.   

    我从来没做过这个,只知道现在有一个sqlserver数据库要查看和打印报表
      

  2.   

    直接调用word、excel就可以,灵活的多。
      

  3.   

    void CUsbADCView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)
    {
    // TODO: add customized printing code here ((CMainFrame*)(this->GetParentFrame()))->PrintResult(pDC);// 添加此句 
    }
    PrintResult(pDC)这个函数你你自己要打印的报表,