crystal水晶报表几个个非常棘手的问题,请帮个忙!感激不尽!!
本人在用delphi的RDC开发中碰到一个难题!!
还希望各位同僚给与关怀和帮助!
问题之一:
用程序把本地的Active Data (Field Definitions Only)生成的ttx文件加入到报表中,报出错误:参数类型错误,请告知一个参数的类型。
其函数原型:
procedure Add(const pLocation: WideString;
pSubLocation: OleVariant;
pConnectInfo: OleVariant;
tableType: OleVariant;
pDllName: OleVariant;
pServerName: OleVariant;
pServerType: OleVariant;
pDatabaseName: OleVariant;
pUserID: OleVariant;
pPassword: OleVariant
); safecall;
下面是我写的程序:
tmptable.pLocation:='c:\tmp\test.ttx';
tmptable.pSubLocation:='';
tmptable.pConnectInfo:='';
tmptable.ptableType:=1;
tmptable.pDllName:='p2smon.dll';
tmptable.pServerName:='c:\tmp\test.ttx';
tmptable.pServerType:='Active Data (Field Definitions Only)';
tmptable.pDatabaseName:='';
tmptable.pUserID:='';
tmptable.pPassword:='';
m_report.Database.LogOnServerEx('p2smon.dll','c:\tmp\test.ttx','','','','Active Data (Field Definitions Only)','PreQEServerType=Active Data(Field Definitions Only);;PreQEServerName=c:\tmp\test.ttx'); //这个已经运行成功,在下一个函数出现错误
m_report.Database.Tables.Add(tmptable.pLocation,
tmptable.pSubLocation,
tmptable.pConnectInfo,
tmptable.ptableType,
tmptable.pDllName,
tmptable.pServerName,
tmptable.pServerType,
tmptable.pDatabaseName,
tmptable.pUserID,
tmptable.pPassword);
这是我最棘手的问题!我已经解决了三周没有解决掉!请用过的给出一个能用的例子。
问题之二:
画斜线的问题:
首先我知道当前的crystal是不能画斜线,怎么样能想办法扩展成能画斜线。