从数据库服务器运行报表 避免报表杂乱无章

作者:cheny    来源:    浏览:Loading...      日期:2013-07-12

在使用Stimulsoft Rrport制作报表的时候,你是不是会遇到很多张报表挤在一起的情况。
不幸的是,我今天遇到了,还相当的彻底,就算改变代码都无法把这个问题解决。

下面是我的例子:
返回一大串,看得人头痛:


select ...
IsNull((select 1+IsNull(reshimat_mashtela_kav_tchuna.maslul_id * 0,-1) from  reshimat_mashtela_kav_tchuna where reshimat_mashtela_kav_tchuna.kav_id = reshimat_mashtela_kav.kav_id
   and reshimat_mashtela_kav_tchuna.reshimat_mashtela_id = reshimat_mashtela.reshimat_mashtela_id
   and reshimat_mashtela_kav_tchuna.mispar_mashtela = reshimat_mashtela_kav.mispar_mashtela
   and reshimat_mashtela_kav_tchuna.tchuna_type = 145),'') VeBM,
IsNull((select 1+IsNull(reshimat_mashtela_kav_tchuna.maslul_id * 0,-1) from  reshimat_mashtela_kav_tchuna where reshimat_mashtela_kav_tchuna.kav_id = reshimat_mashtela_kav.kav_id
   and reshimat_mashtela_kav_tchuna.reshimat_mashtela_id = reshimat_mashtela.reshimat_mashtela_id
   and reshimat_mashtela_kav_tchuna.mispar_mashtela = reshimat_mashtela_kav.mispar_mashtela
   and reshimat_mashtela_kav_tchuna.tchuna_type = 149),'') I1BM,
etc..
from table1, etc...

如何解决这个问题呢,修改代码,是真心无法解决的,这是一个来自数据库不服务器错误,唯一途径只能从数据库服务器中运行。你可以自己试试,欢迎一起交流学习。

Tag标签:Stimulsoft Rrport 

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:Stimulsoft中文网 [http://www.Stimulsoft.cn/]
本文地址: http://www.Stimulsoft.cn/Resources/doc/177.html

上一篇: Stimulsoft Reports.Net使用交流:分配数据板块

下一篇: 注意用户变量数据列出现空值