如何将方法的数据表返回分配给crystal报表文档? [英] How do assign a Datatable return from a method to crystal report document?

查看:87
本文介绍了如何将方法的数据表返回分配给crystal报表文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,

好的,拖动并将表格列拖到报告上非常容易。但是,如果一个方法返回一个数据表并假设我的报告为空白它没有添加任何列在设计时显示,显然该报告不知道会发生什么。在这种情况下,
假设返回的datatatble具有以下列:UserID,UserName,FirstName,LastName,UserGroup。我希望报告只显示列,
用户名指定,如何将我返回的数据表的这些列分配给报告?

ok, dragging and droipping table column on to report is quite easy. But what if a method return a datatable and assume the my report blank it hasnt added any columns to display at design time, obviousely the report does not know what to expect. in this case, assume the returned datatatble has the follwoing columns: UserID, UserName, FirstName, LastName, UserGroup. i want the report to display only the columns, username and Designation, how do assign those columns of my returned datatable to the report?

谢谢

推荐答案

Hello Code_Warrior,

Hello Code_Warrior,

     您是否想要在报告中动态添加列?

      Do you mean you want to add the columns dynamically in the report ?

     是否表示您尚未设计报告并在报告中动态添加列?

      Means you havent designed the report and dynamically adding columns in the report?

 

谢谢,

Paras Sanghani

Paras Sanghani


这篇关于如何将方法的数据表返回分配给crystal报表文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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