crystal水晶报表几个个非常棘手的问题,请帮个忙!感激不尽!!

fuyongjun 2003-10-17 07:02:47
本人在用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是不能画斜线,怎么样能想办法扩展成能画斜线。
...全文
33 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gomen 2003-10-23
  • 打赏
  • 举报
回复
up
gzllich 2003-10-19
  • 打赏
  • 举报
回复
画斜线最简单了,你在word里画好后拷过去就行了
47522341 2003-10-17
  • 打赏
  • 举报
回复
up
klbt 2003-10-17
  • 打赏
  • 举报
回复
非常困难的问题,帮你顶。

5,385

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧