SnailRun 发表于 2015-5-22 13:58:00

ar中怎么添加图片

ar中添加图片是不是可以通过DocumentMap.Path来指定?或者有什么方法?

frank.zhang 发表于 2015-5-22 16:34:00

您好,
您是在哪种模板上添加图片,是区域报表还是RDL报表?
您是想通过后台代码的方式来在运行时,设置代码吗?

SnailRun 发表于 2015-5-22 18:02:00

回复 2楼frank.zhang的帖子




想实现最后一列的效果,td中有值,通过它的值来判断显示哪种图片

frank.zhang 发表于 2015-5-25 09:43:00

您好,
您在上文提到的这个箭头模板,我们通过IconSet这个函数来实现的。
=IconSet("Arrows",Fields!销售量.Value /Avg(Fields!销售量.Value, "SalesByCategory") >= 1.5,Fields!销售量.Value /Avg(Fields!销售量.Value, "SalesByCategory") >= 1.2,Fields!销售量.Value /Avg(Fields!销售量.Value, "SalesByCategory") >= 1.0,Fields!销售量.Value /Avg(Fields!销售量.Value, "SalesByCategory") >= 0.8,Fields!销售量.Value /Avg(Fields!销售量.Value, "SalesByCategory") < 0.8)
参考博客:http://blog.gcpowertools.com.cn/post/2013/07/04/ActiveReports-DataVisualizer.aspx

这个函数的用法:
Parameters
Icon Set. This designates the name of the icon set to use.
Icon 1 Value. A Boolean expression that, if it evaluates to True, renders this icon from the strip.
Icon 2 Value. A Boolean expression that, if it evaluates to True, renders this icon from the strip.
Icon 3 Value. A Boolean expression that, if it evaluates to True, renders this icon from the strip.
Icon 4 Value. A Boolean expression that, if it evaluates to True, renders this icon from the strip.
Icon 5 Value. A Boolean expression that, if it evaluates to True, renders this icon from the strip.

在自定义图片时,可以使用
=IconSet("C:\Images\customstrip.bmp", 4 > 9, 5 > 9, 10 > 9, False, False)

官方文档:http://arhelp.grapecity.com/webhelp/AR9/index.html#IconSets.html

frank.zhang 发表于 2015-6-1 17:44:00

您好,
距离这个问题的最后回复已经过去了一段时间,不知道这个问题您是否已经解决?
如果没有解决,欢迎跟贴接续讨论,如果已经解决请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页: [1]
查看完整版本: ar中怎么添加图片