我有一方法可显示:COleDocObjectItem* m_pSelection;void CReport4View::OnInitialUpdate()
{
CView::OnInitialUpdate();
m_pSelection=new COleDocObjectItem(GetDocument());
if(!m_pSelection->CreateFromFile("D:\\DownLoad\\Report\\xoffice_demo\\XOffice.xls"))
AfxMessageBox("未能打开文件D:\\DownLoad\\Report\\xoffice_demo\\XOffice.xls");
m_pSelection->DoVerb(OLEIVERB_SHOW,this);
GetDocument()->UpdateAllViews(NULL);
}但不知如何对EXCEL文件进行控制?
{
CView::OnInitialUpdate();
m_pSelection=new COleDocObjectItem(GetDocument());
if(!m_pSelection->CreateFromFile("D:\\DownLoad\\Report\\xoffice_demo\\XOffice.xls"))
AfxMessageBox("未能打开文件D:\\DownLoad\\Report\\xoffice_demo\\XOffice.xls");
m_pSelection->DoVerb(OLEIVERB_SHOW,this);
GetDocument()->UpdateAllViews(NULL);
}但不知如何对EXCEL文件进行控制?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货