润乾报表 4.0 与润乾报表 V2018 函数对照

之前使用报表处理是出现了一些问题,原来发现是版本造成的。此文记录两个版本之间的函数差别。

官方资料入口:http://doc.raqsoft.com.cn/report/preference/wdzl1.html


润乾报表4.0


润乾报表V2018


润乾报表V2018备注


数据集函数 ( 原润乾报表4.0已删除函数为:ds.enumGroup )


ds.avg()


同ds.avg()


@r用根集;@a 计数null


ds. bselect1()


ds.bfind(select, {refer1:order1:value1},…,{refer2:order2:value2})


@r用根集


ds. colcount()


ds.fcount()


ds.count()


同ds.count()


@r用根集;


ds.dcount()


同ds.dcount()


@r用根集


ds.dselect()


参见ds.select()


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.field()


同ds.field()


ds.fieldname()


ds.fname(fieldNoExp)


ds.first()


参见ds.select()


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.group()


同ds.group()


@r用根集,order省略为不排序,>0升序,<0降序;

order1,..,ordern省略时升序

(将润乾报表4.0的ds.group()、ds.groupEx()合并为润乾报表V2018的ds.group())


ds.groupEx()


参见ds.group()


@r用根集(将润乾报表4.0的ds.group()、ds.groupEx()合并为润乾表的ds.group())


ds.isfield()


同ds.isfield()


ds.last()


参见ds.select


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.max()


同ds.max(select,{filter})


@r用根集


ds.min()


同ds.min(select,{filter})


@r用根集


ds.plot()


同ds.plot(value,list,{filter})


@c包含相等,@z降序,@r用根集


ds.select()


同ds.select(select:{order},{filter},{num},{distinct})

ds.select(select,{filter},{num},{distinct};{sort1}:{order1},…)


@r用根集,@z从后数, num省略时返回全部(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.select1()


参见ds.select()


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.selectEx()


参见ds.select()


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.sum()


同ds.sum(select,{filter})


@r用根集(将润乾报表4.0的ds.dselect()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


ds.top()


参见ds.select()


@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())


单元格函数 (原润乾报表4.0已删除函数为:inputvalue ())


avg()


同avg(exp)


@a 对null元素进行计数

(将润乾报表4.0的avg()、avg2()合并为润乾报表V2018的avg())


avg2()


参见avg(cellExp,exp)


将润乾报表4.0的avg()、avg2()合并为润乾报表V2018的avg()


call()


同call(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})


将润乾报表4.0的call()、call2()合并为润乾报表V2018的call()


call2()


参见call()


将润乾报表4.0的call()、call2()合并为润乾报表V2018的call()


case()


同case()


cell()


同cell()


col()


同col()


count()


同count(exp)


@a对null元素进行计数

@d对去除重复内容后的数据进行计数


disp()


同disp()


ds()


同ds()


eval()


同eval()


if()


同if(x1:y1,…,xk:yk;y)


list()


list(valueExp1{,valueExp2{,valueExp3{,……}}})


@m 各元素递归并集,对内部的list不展开

(将润乾报表4.0的list()、list2()合并为润乾报表V2018的list())


list2()


参见list()


将润乾报表4.0的list()、list2()合并为润乾报表V2018的list()


map()


同map()


max()


max(x)

max(x,cell)


maxc()


同maxc()


maxwidth()


同maxwidth()


min()


同min()


minc()


同minc()


nvl()


ifn( valueExp1, valueExp2 )


plot()


plot( valueExp, ListExp)


@e包含等于,@z指list降序否则升序


query()


query(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})


将润乾报表4.0的query()、query2()合并为润乾报表V2018的query()


query2()


参见query()


将润乾报表4.0的query()、query2()合并为润乾报表V2018的query()


row()


同row()


seq()


同seq()


sort()


sort(array)


@z降序


sum()


sum(expression)

sum(exp,cellExp)


throwe()


throwe({msg})


to()


同to()


value()


同value()


valueat()


同valueat()


时间日期函数 (原润乾报表4.0已删除函数为:dayNo() )


age()


age(dateExp{,typeExp{,dateExp2}}) age(stringExp,formatExp{{,typeExp},date2Exp})


date()


date(stringExp)

date(year,month,day)


dateTime()


datetime(string)

datetime(long)


将润乾报表4.0的dateTime()、dateTime2()合并为润乾报表V2018的datetime ()


dateTime2()


datetime(string, format)


将润乾报表4.0的dateTime()、dateTime2()合并为润乾报表V2018的datetime ()


day()


同day(dateExp)


dayName()


同dayName(dateExp)


daysAfter()


interval (datetimeExp1,datetimeExp2)


@y计算两个日期时间型数据相差几年

@q  计算两个日期时间型数据相差几季度

@m 计算两个日期时间型数据相差几月

@s  计算两个日期时间型数据相差几秒

@ms计算两个日期时间型数据相差几毫秒

@r  计算两个日期时间型数据间隔,返回实数

缺省为计算两个日期时间型数据相差几天

(将润乾报表4.0的daysAfter()、secondsAfter()合并为润乾报表V2018的interval())


daysinmonth()


参见days(dateExp)


将润乾报表4.0的daysinmonth ()、daysinyear()合并为润乾报表V2018的days()


daysinyear()


参见[email protected](dateExp)


将润乾报表4.0的daysinmonth ()、daysinyear()合并为润乾报表V2018的days()


hour()


同hour(datetimeExp)


lastday()


elapse(dateExp, n)


将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()


lastmonth()


[email protected] (dateExp, n)


将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()


lastyear()


[email protected] (dateExp, n)


将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()


minute()


同minute()


month()


同month()


monthbegin()


pdate @m(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


monthend()


pdate @me(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


now()


同now()


quaterbegin()


pdate @q(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


quaterend()


pdate @qe(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


relDate()


参见elapse(dateExp, n)


将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()


relTime()


参见[email protected](dateExp, n)


将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()


second()


同second(datetimeExp)


secondsAfter()


参见[email protected] (datetimeExp1,datetimeExp2)


将润乾报表4.0的daysAfter()、secondsAfter()合并为润乾报表V2018的interval()


time()


同time()


weekbegin()


pdate @w(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


weekend()


pdate @we(dateExp)


将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()


year()


同year(dateExp))


数学函数


abs()


同abs()


ceil()


同ceil()


cos()


同cos()


exp()


同exp()


fact()


同fact()


floor()


同floor()


log()


ln(numberExp)


log10()


lg (numberExp)


pi()


同pi()


pow()


同power(xExp, nExp)


rand()


同rand()


round()


同round()


sign()


同sign()


sin()


同sin()


sqrt()


同sqrt()


tan()


同tan()


asin()


同asin()


acos()


同acos()


atan()


同atan()


字符串函数 (原润乾报表4.0已删除函数为:ltrim ()、rtrim())


fill()


同fill(s, n)


left()


同left(string, n)


len()


同len(str)


like()


同like( stringExp, formatExp{, ignoreCase} )


link()


同link(serviceName{,jspArgNames,jspArgValues{,reportArgNames,reportArgValues}})


lower()


同lower(str)


mid()


同mid(s, start{, end})


pos()


同pos()


right()


同right(s, n)


rmQuote()


同rmquote(exp)


rmb()


同rmb()


rplc()


replace( src,a,b)


space()


同space()


split()


同split()


trim()


同trim(s)


upper()


同upper()


wordCap()


同wordcap()


数据类型转换


asc()


同asc( string{, nPos} )


bigint()


bigint(stringExp)

bigint(numberExp)


char()


同char( int )


chn()


同chn(intExp{,abbrivateExp{, uppercaseExp }} )


decimal()


同deicmal()


double()


同double()


float()


同float()


hexstring()


同hexstring(dataExp{,spaceExp})


int()


同int()


isdate()


同isdate()


isEmpty ()


同isempty ()


isnumber()


同isnumber()


istime()


同istime()


long()


同long()


number()


同number()


rgb()


同rgb( redIntExp, greenIntExp, blueIntExp{, alphaIntExp} )


str()


string(expression{, format})


分页后运算函数


pno()


同pno()


@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码


pcount()


同pcount()


@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码


pcsum()


同pcsum({cellExp})


pccount()


同pccount({cellExp})

资料来源于网络。

原文地址:https://www.cnblogs.com/kaspar/p/12175451.html

时间: 2024-07-28 16:16:36

润乾报表 4.0 与润乾报表 V2018 函数对照的相关文章

润乾报表实现无数据源的规则报表及改进

某报表系统中有部分报表需要按照一定规则显示数据,如:显示查询日期范围内的奇数日数据,要求数据库中即使无记录该日期也显示(内容为空). 本文重点来实现奇数日期序列,数据区不是重点,故置空. 以上述报表需求为例,这里来看一下润乾报表的实现过程,以及改进方法. 润乾报表实现 以下为润乾报表的实现方式,考虑跨年和跨月份的情况: 使用时要对辅助列A列进行隐藏,以及对第2行进行条件隐藏,偶数的日期不显示.所以报表工具实现要依靠大量隐藏行列. 报表工具实现需要借助隐藏行格完成,主要原因是数据计算和报表呈现混在

润乾集算报表非常规统计之无源规则报表

报表开发中,经常会碰到一些需要进行非常规统计的报表,固定分组.可重复分组.组内排序,还包括跨行组计算的报表,甚至有些报表本身无数据来源.以及需要对数据源再计算.这些报表本身具备一定的特殊性,使用常规方法往往难于实现. 集算报表完成这类特殊统计报表则非常简单,这里以一个没有数据源,但展现规则的报表为例,说明集算报表的实现过程. 报表说明 某报表系统中有部分报表需要按照一定规则显示数据,如:显示查询日期范围内的奇数日数据,要求数据库中即使无记录该日期也显示(内容为空). 本文重点来实现奇数日期序列,

U8V12.0 平均月库存报表制作过程记录

找到以下报表有平均库存数: 销售管理-报表-综合分析-商品周转率分析 存货核算-分析表-存货周转率分析 上面两处的平均库存,均为日平均库存. 计算方式为: 平均库存数量:查询期间内存货每天的平均库存量之和÷查询期间天数 每天的平均库存量=(当天的期初结存数量+当天的期末结存数量)÷2 经过验证,期初结存数量和期末结存数量来自存货明细账. 查询日期是从2017-5-1至2017-5-31的周转率分析,得出的还是4月份的期末数量进行的计算. 明细账,是需要进行记账处理过才会有数据的,所以5月份并没有

非常规统计报表之制作按段分组报表的新办法

报表开发中,经常会碰到一些需要进行非常规统计的报表,固定分组.可重复分组.组内排序,还包括跨行组计算的报表,甚至有些报表本身无数据来源.以及需要对数据源再计算.这些报表本身具备一定的特殊性,使用常规方法往往难于实现. 对于按段分组报表,各段之间可以有重复,也就可能出现按段可重复的分组报表.集算报表在完成这类特殊统计报表时比较简单,这里通过一个实例说明实现过程. 报表说明 根据员工基本信息表按年龄统计各年龄段区间的人数.奖金等汇总情况.报表样式如下: 这里"30-40岁"和"3

ActiveReports 报表应用教程 (2)---清单类报表

原文:ActiveReports 报表应用教程 (2)---清单类报表 在大多报表系统中都有清单类报表的身影,比如:客户清单.商品信息清单.设备清单.物品采购清单.记账凭证.货品发货清单.员工清单等等.清单类报表看视乎比较简单,但是,由清单类报表演变而来的报表类型却十分丰富,在清单类报表中可以加入数据统计.数据分栏.数据分组,以及交互式报表和数据可视化功能. 本文将展示两种布局的清单类报表,表格式清单报表和自由布局清单报表.   1.表格式清单报表--客户信息清单 在客户信息清单报表中以表格形式

锐浪 报表, 当多行交叉报表时,对多行交叉报表中自由格中的多个字段控件,进行颜色控制. 取值 判断等实现

需要注意的点是: 1 . 要对自由格中对应的 字段框的背景填充方式改为:填充,否则没有效果. 2 . 代码中红色部门代码: Column 为明细网络对象属性中的 列集合 中的 交叉列的 名称,  Report.RunningDetailGrid.Columns.Item("Column_2") 3.  蓝色部门 为自由格中 控件的索引位置 ,也可以根据字段框的名称来进行控制如:  contentCell.Controls.Item("FieldBox8") 代码如下

锐浪报表 微调快捷键 及 设计主报表网格栅格点间距

选择 报表主对象 -> 每单位栅格点行数: 每单位栅格点列数 方向键 -- 移动选中部件框,Ctrl+方向键 -- 微调移动选中部件框Shift+方向键 -- 微调选中部件框的大小 锐浪报表 微调快捷键 及 设计主报表网格栅格点间距,布布扣,bubuko.com

在VS2012后的版本中做数据报表时,提示尚未指定报表“Report1”的报表定义

有一群的朋友在用VS2012做数据报表时,老是提示 本地报表处理期间出错. 尚未指定报表“Report1”的报表定义 未将对象引用设置到对象的实例. 我看了一下,步骤没错,我用VS2010做了一下,一切OK,没问题,但用VS2013做时, 就提示这错误 后仔细看了一下设计生成的源码,嘿,还真有区别,在VS2012与VS2013中, ReportViewer生成的代码在引用报表数据时,使用的是ReportEmbeddedResource属性 <LocalReport ReportEmbeddedR

在报表中给session赋值实现报表间参数共享

1. 问题描述 在报表开发工具FineReport中,若有几张不同的报表,每张报表都有一个共同的项可以选择,比如日期时间.我们希望选择了第一张报表的时间之后,其他报表的默认时间都变为第一张报表选择的时间,此时要如何实现呢? 2. 实现思路 可以利用给session赋值来实现.给第一张报表的参数控件增加通过ajax的url将值传递给后台的servlet的编辑后事件,servlet获取ajax传递的值并将其保存到session中,后面的报表在参数的控件值处通获取session值即可. 3. 实现步骤