水晶报表9中,如何在程序中得知当前报表用的table? 在水晶报表4.6中可以在程序中得到所选报表用到的不同表在9.0中如何得到当前表? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 程序是不知道的,只知道数据源但不知道用哪个表,报表是已经定义好的,原来的报表是用4.6做的 short num; short i,j; CString strTmp; num=m_CrystalReport.RetrieveLogonInfo(); num=m_CrystalReport.RetrieveDataFiles(); for (i=0;i<num;i++) { strTmp=m_CrystalReport.GetDataFiles(i); AfxMessageBox(strTmp); int n=strTmp.ReverseFind('.'); strTmp=strTmp.Right(strTmp.GetLength()-n-1);//得到当前表名 AfxMessageBox(strTmp); m_CrystalReport.SetDataFiles(i,strTmp); } m_CrystalReport.SetAction(1); m_bRptCreated = true; delphi中可以这样得到:crpe是控件Crpe.Tables.Items[0].Name 再问如何查找不匹配数据!期待老鸟!双贴200分奉送! 没有情人的进来 请问VB中根据一定的条件修改SQL表中某一字段的值呢? 怎样第1个窗口的数组的所有值传给第2个窗口的数组? select case 怎么会出现这种问题呢? 更改记录?急!!! datareport报表导出时,表格错位问题?急死了。 使用fso要用到scrrun.dll,是不是windows中默认就安装了该文件? 请问“文件名、目录名或卷标名不正确”是什么错误?具体情况请进来看看 如何设计一个食堂管理系统 最新 setup factory 问题! 如何将vb与excel连接,并把信息导入到.MDB表中
只知道数据源但不知道用哪个表,报表是已经定义好的,原来的报表是用4.6做的 short num;
short i,j;
CString strTmp;
num=m_CrystalReport.RetrieveLogonInfo();
num=m_CrystalReport.RetrieveDataFiles();
for (i=0;i<num;i++)
{
strTmp=m_CrystalReport.GetDataFiles(i);
AfxMessageBox(strTmp);
int n=strTmp.ReverseFind('.');
strTmp=strTmp.Right(strTmp.GetLength()-n-1);//得到当前表名
AfxMessageBox(strTmp);
m_CrystalReport.SetDataFiles(i,strTmp);
}
m_CrystalReport.SetAction(1);
m_bRptCreated = true;
crpe是控件
Crpe.Tables.Items[0].Name