在运行时添加要报告的字段 [英] Adding fields to report at runtime

查看:80
本文介绍了在运行时添加要报告的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将报表的数据源设置为数据表,这很好。我遇到的问题是,我不知道数据表中有多少列,直到运行时。我需要能够在运行时向报表添加数据库字段。


此外,我需要能够根据字段的值和前一个字段的状态格式化字段。 / p>

此报告显示某个时间段内房间的可用性。



非常感谢



Jay

解决方案

使用标准.NET SDK如果您无法在运行时添加字段,则需要使用RAS SDK,该SDK仅在具有Crystal Enterprise,Crystal Reports Server或Business Objects Enterprise时可用。


对于基于值的格式化字段,可以在格式字段窗口中执行此操作。所有格式选项都有一个公式选项,您可以执行此操作。


Im setting the datasource of my report to a datatable, which is fine. The problem i am having is that i dont know how many columns there is in the datatable until runtime. I need to be able to add database fields to the report at runtime.

In addition i need to be able to format the field based upon its value and the state of the previous field.

This report show the availability of a room over a given period.

 

Many thanks

 

Jay

解决方案

Using the standard .NET SDK you do not have the ability to add fields at runtime, you need to use the RAS SDK which is only available if you have Crystal Enterprise, Crystal Reports Server, or Business Objects Enterprise. 

As for formatting fields based upon their value, you can do this in the format field window.  All formatting options have a formula option where you can do this.


这篇关于在运行时添加要报告的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆