读书人

xml怎么生成水晶报表

发布时间: 2012-03-09 21:42:54 作者: rapoo

xml如何生成水晶报表
我的水晶报表工作在PUSH模式下,将DataSource.xml文件作为数据源,
导入到Empty.rpt这个空白报表模板中去

请问代码怎么写?

[解决办法]
m_Report = m_Application->OpenReport(ReportPath, dummy);
IDatabasePtr pDB=m_Report->Database;
pDB->Tables->Item[1]->Location=_bstr_t(strFileXml);
------------------------------
m_Report, pDB, pDB->Tables,这些值都正常吗?Item[1]取第二项?

读书人网 >C++

热点推荐