如何在RDLC报告中创建动态列 [英] How to create dynamic columns in RDLC report

查看:102
本文介绍了如何在RDLC报告中创建动态列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在开发一个Windows应用程序,里面我使用rdlc报告,我有两个字段



在我的报告中1)派对名称2)项目名称。



这里我告诉你我想做什么... < br $>




派对|项目1 |项目2 |项目3 |项目4 | Item5



现在我想创建项目的动态列当我为ex添加新项目时: -



1)如果我添加Item6比我的报告看起来像这样...



派对|项目1 |项目2 |项目3 |项目4 |项目5 | Item6



有可能吗? ,请帮助我以及我如何做到这一点..





谢谢和问候

Hello to All,

I am working on one windows application , Inside that i have use rdlc reports, i have two field

in my report 1)Party Name 2) Item Name .

Here I show you what i want to do...


Party | Item1| Item2| Item3 |Item4| Item5

now i want to create dynamic column of Item When I add new Item for ex:-

1)If I added Item6 than My reports look like this...

Party | Item1| Item2| Item3 |Item4| Item5| Item6

Is it possible? , than please help me and how i can do this ..


Thanks and Regards

推荐答案

在你的RDLC上拿一个桌面工具



为你创建一个派对的BLoumn



,然后在你的商品上添加一个列组



作为新项目添加到聚会订单列将自动



在rdlc生成



希望这可以帮助你
Take a Table tool on Your RDLC

Create One Cloumn for Party as you want

and then add a column group which group on Your Items

as New item added to the party Order the column will automatically

generated in rdlc

hope this helps you


如果最大列数是已修复,您可以创建所有这些,只需隐藏或显示所需的列数
If the max number of columns is fixed, you could create all of them and just hide or show the number of columns needed


这篇关于如何在RDLC报告中创建动态列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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