水晶报表没有显示, 提示是"没有查看的报表"
rt,我是用向导生成了rpt文件, 然后在程序中这样写:
IReportPtr m_Report;
IApplicationPtr m_Application;
CCrviewer1 m_wndCRViewer;
m_Application.CreateInstance(__uuidof(Application));
m_Report = m_Application->OpenReport("report.rpt");
m_Report->ReportTitle = "人员档案报表示范";
m_Report->Areas->GetItem("PH");
m_wndCRViewer.ViewReport();
m_wndCRViewer.Zoom(75);
运行时无法显示, 这是怎么回事呢?