asp.net中的动态Crystal报表 [英] Dynamic Crystal report in asp.net

查看:79
本文介绍了asp.net中的动态Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net中使用c#.net代码动态创建水晶报表,我不知道我将在运行时从数据库中获取的列,我将所有数据都集成到一个数据集然后它显示在报告中。

我过去两天一直在网上搜索。



如果有人知道解决方案..请帮助我

I want to create crystal reports dynamically in asp.net with c#.net code behind, I don't know the columns i will take it from database at run time, I am getting all data into one data set and then it display in the report.
I have been searching through net since last two days.

if anybody knows the solution..please help me

推荐答案

这里你老兄



动态列的结晶报告 [ ^ ]



使用C#的动态Crystal报表 [ ^ ]



Crystal Reports with Dynamic具有类型化数据集的列数 [ ^ ]


Crystal Report以显示动态列 ^ ]
Here you go dude

Crystal report with Dynamic Column[^]

Dynamic Crystal Report with C#[^]

Crystal Reports with Dynamic Number of Columns with Typed Dataset[^]

Crystal Report to display dynamic columns[^]


我不确定,但我认为CR是不可能的,因为当你想创建报告时需要强类型DataSet定义。



您可以使用此页面上显示的类似hack的实现来解决这个问题:

http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm [ ^ ]或 http://ymicrosoft.blogspot.com/2009/12/dynamic-crystal-report-using-c.html [ ^ ]



这不是正确的解决方案,因为您需要知道SQL查询输出中有多少列,并且您需要根据该数字设计报告。

我建议您使用另一个可以满足您需求的报告框架。 ;)
I'm not sure, but I think this is not possible with CR, because you need strong type DataSet definition when you want to create report.

You can solve this using this "hack-like" implementation shown at this pages:
http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm[^] or http://ymicrosoft.blogspot.com/2009/12/dynamic-crystal-report-using-c.html[^]

This is not right solution, because you need to know how many columns you have in SQL query output, and you need to design your report according to that number.
My suggestion to you is to use another report framework that can satisfy your needs. ;)


hi ..

我想用sql server生成动态水晶报告。

动态生成行和列大小在数据库列中存储为百分比。

并从数据库中获取并生成该百分比明智的水晶报告行和列。
hi..
I want to generate dynamic crystal report using sql server.
Dynamic generate row and column size which is store in database column as Percentage.
and Fetch from database and generate that percentage wise crystal report rows and column.


这篇关于asp.net中的动态Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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