帮帮忙!!!!小弟才开始接触水晶报表,想找个在winform和webform下的水晶报表示例,简单明了的,越基础越好,谢谢!!!!!
小弟才开始接触水晶报表,想找个在winform和webform下的水晶报表示例,简单明了的,越基础越好,谢谢!!!!! 问题点数:50、回复次数:34Top
1 楼ld_thinking(懒得想)回复于 2005-09-22 00:33:16 得分 0
留个EMAIL咯Top
2 楼loveyzy(菌哥)回复于 2005-09-22 07:46:17 得分 0
对呀,没有联系方式,如何传给你Top
3 楼liuchengit(有事您说话)回复于 2005-09-22 07:48:34 得分 0
联系方式
Top
4 楼aimei2003(牧羊人)回复于 2005-09-22 08:41:25 得分 0
wlhard2003@tom.comTop
5 楼wxwx110(无敌大馒头)回复于 2005-09-22 08:44:16 得分 0
给我也一份可以么?muumuu123@126.comTop
6 楼nvsoft(小菜鸟)回复于 2005-09-22 08:51:30 得分 0
偶也想要一份
chenxh@ns99.netTop
7 楼vc_jackaroo()回复于 2005-09-22 09:06:00 得分 0
我也想要一份
mail: qinwen_zheng@yahoo.com
謝謝!!!Top
8 楼zk911(尘埃)回复于 2005-09-22 09:12:44 得分 0
给我一份好吗 供学习之用 谢谢!!!
zk7580@163.comTop
9 楼yuanmou(hu)回复于 2005-09-22 09:19:11 得分 0
我也想学习一下 谢谢..
yuanmou12@126.comTop
10 楼huanghongbin(阿斌)回复于 2005-09-22 09:48:59 得分 0
我也想要一份,因为我现在也正在做水晶报表。
Mail:392201249@qq.comTop
11 楼huangguile(乐)回复于 2005-09-22 09:52:08 得分 0
我也想要一份
mail: lwang1729@163.com
謝謝!!!
Top
12 楼yangwh22()回复于 2005-09-22 09:59:18 得分 0
我也想要一份
mail: yangonsh@163.com
謝謝!!!Top
13 楼xiaowangtian1117(笑望天1117)回复于 2005-09-22 10:00:43 得分 0
我也想要一份
mail: tkailw@126.com
謝謝!!!
Top
14 楼lyb_abiandbel(专注于OO分析与设计)回复于 2005-09-22 11:35:02 得分 0
http://www.bypro.net/20069/ShowPost.aspxTop
15 楼ping_bo()回复于 2005-09-22 13:46:45 得分 0
也给我一份吧,这几天郁闷死了,就想找这方面的资料,
我在这里谢谢高手了。
mail:xiaoping_8038@163.comTop
16 楼zhaoy3555()回复于 2005-09-22 14:24:34 得分 0
楼主的邮箱:zhaoy3555@163.com 谢谢!!!Top
17 楼lyb_abiandbel(专注于OO分析与设计)回复于 2005-09-22 14:39:20 得分 0
已经发送Top
18 楼zhaoy3555()回复于 2005-09-22 15:25:31 得分 0
小弟还有个问题:为什么我用.net自带的报表查看器绑定了报表源,运行的时候总是有个数据库的登录框出现呢???
我不晓得哪里出了问题,请各位指点!!!谢谢!!Top
19 楼blackhero(黑侠客)回复于 2005-09-22 16:20:12 得分 0
windowsvista@126.comTop
20 楼lyb_abiandbel(专注于OO分析与设计)回复于 2005-09-22 16:31:54 得分 30
如果你用的是水晶报表的推模式,一般不用设置登陆信息,但是要这样写:obj.SetDataSource(this.ds.Tables["tablename"]);如果你写成了obj.SetDataSource(this.ds)就会有登陆框的。
如果你用的是水晶报表的拉模式,你就一定要写上登陆信息:
crReportDocument = new OracleReport();
//Set the crConnectionInfo with the current values stored in the report
crConnectionInfo = crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;
/* Populate the ConnectionInfo Objects Properties with the appropriate values for
the ServerName, User ID, Password and DatabaseName. However, since Oracle
works on Schemas, Crystal Reports does not recognize or store a DatabaseName.
Therefore, the DatabaseName property must be set to a BLANK string. */
crConnectionInfo.DatabaseName = "";
crConnectionInfo.ServerName = "Your Server Name";
crConnectionInfo.UserID = "Your User ID";
crConnectionInfo.Password = "Your Password";
//Set the CrDatabase Object to the Report's Database
crDatabase = crReportDocument.Database;
//Set the CrTables object to the Tables collection of the Report's dDtabase
crTables = crDatabase.Tables;
//Loop through each Table object in the Tables collection and apply the logon info
//specified ealier. Note this sample only has one table so the loop will only execute once
foreach (Table crTable in crTables)
{
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo (crTableLogOnInfo);
// if you wish to change the schema name as well, you will need to set Location property as follows:
// crTable.Location = "<new schema name>." + crTable.Name;
}
//Set the ReportSource of the CrystalReportViewer to the strongly typed Report included in the project
crystalReportViewer1.ReportSource = crReportDocument;
还有一点要注意:
如果你用到了子报表,一定要处理:
//Go through each sections in the main report and identify the subreport by name
crSections = crReportDocument.ReportDefinition.Sections;
foreach(Section crSection in crSections)
{
crReportObjects = crSection.ReportObjects;
//loop through all the report objects to find all the subreports
foreach(ReportObject crReportObject in crReportObjects)
{
if (crReportObject.Kind == ReportObjectKind.SubreportObject)
{
//you will need to typecast the reportobject to a subreport
//object once you find it
crSubreportObject = (SubreportObject)crReportObject;
//open the subreport object
crSubReportDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
//Once the correct subreport has been located pass it the
//appropriate dataset
if(crSubReportDoc.Name == "FirstSub")
{
//crSubReportDoc.Database.Tables[0].SetDataSource(ds);
crSubReportDoc.SetDataSource(ds);
}
}
}
}
crystalReportViewer1.ReportSource = crReportDocument;
同样crSubReportDoc.SetDataSource(ds);改为:crSubReportDoc.SetDataSource(ds.Tables["tablename"]);
Top
21 楼lyb_abiandbel(专注于OO分析与设计)回复于 2005-09-22 16:32:20 得分 0
http://blog.csdn.net/lyb_abiandbel/archive/2005/09/05/471660.aspxTop
22 楼zhaoy3555()回复于 2005-09-22 17:09:02 得分 0
To:lyb_abiandbel(渴望成为高手)
不好意思,小弟真的愚吨请问什么是推模式什么是拉模式,有这方面的资料吗?拜托了!!!!Top
23 楼tusinc(拼命的學習)回复于 2005-09-22 17:20:33 得分 0
我也想要一份,谢谢了
peaktu123@126.comTop
24 楼lybabiandbel()回复于 2005-09-22 17:44:57 得分 20
拉和推模型
为了向开发人员提供最灵活的数据访问方法,Crystal Reports 数据库驱动程序被设计为可同时提供数据访问的拉模型和推模型。
拉模型
在拉模型中,驱动程序将连接到数据库并根据需要将数据“拉”进来。使用这种模型时,与数据库的连接和为了获取数据而执行的 SQL 命令都同时由 Crystal Reports 本身处理,不需要开发人员编写代码。如果在运行时无须编写任何特殊代码,则使用拉模型。
推模型
相反,推模型需要开发人员编写代码以连接到数据库,执行 SQL 命令以创建与报表中的字段匹配的记录集或数据集,并且将该对象传递给报表。该方法使您可以将连接共享置入应用程序中,并在 Crystal Reports 收到数据之前先将数据筛选出来。
具体的你到论坛搜索一下,很容易找到的.Top
25 楼BNFlying(笨鸟FLying)回复于 2005-09-22 17:54:49 得分 0
小弟也要一份
wangwei0637_cn@sina.com
谢谢前辈了!Top
26 楼waygeorge2005()回复于 2005-09-23 08:16:45 得分 0
waygeorge@163.com
终于有人问这个问题了,流泪呀Top
27 楼lingfenglikeyou(除了干活什么都不做)回复于 2005-09-23 08:29:12 得分 0
我要我要,我也要!!!
lingfenglikeyou@yahoo.com.cnTop
28 楼zaza1020hn(一见倾心)回复于 2005-09-23 09:39:49 得分 0
哎,来晚了。我刚在研究报表,我这有一个视频教程,不错的~要的MSN:z-going@hotmail.comTop
29 楼wolfcyy(小狼)回复于 2005-09-23 11:34:49 得分 0
wo ye yao 195818145@qq.comTop
30 楼shilei831115(柔石)回复于 2005-09-23 12:14:00 得分 0
wo ye yao shilei44448888@126.com
Top
31 楼liuzehong688(宏)回复于 2005-09-23 12:57:09 得分 0
我也要:liuzehong688@163.com
Top
32 楼moodboy1982(老鹰)回复于 2005-09-23 13:06:31 得分 0
我想问问什么是水晶报表??Top
33 楼mike689689(猫之恋曲)回复于 2005-09-23 13:11:16 得分 0
http://blog.csdn.net/haibodotnet/archive/2003/12/11/21546.aspx
无论是winform还是webform这里都有Top
34 楼hqg330803(黄柒光)回复于 2005-10-09 22:00:23 得分 0
我也想要一份,不知道晚不晚。在此先谢谢了
Email:hqg330803@126.comTop
相关问题
- 谁能提供一个简单明了的多层结构的实际例子?
- 谁能提供一个在Webform上模拟Winform上的Toolbar的代码或示例。
- 谁有简单明了的购物车程序给小弟参考一下阿?最好带注释的。。谢谢!
- 让程序开机自动运行,怎么实现?我想要简单明了一点的!
- 求超长sql语句的可以换行的简单明了的写法(在C#.NET中)
- ——————求AspNetPager分页的简单明了的例子!请各位前辈指点!谢谢!!200分!
- winform有没有类似Duwamish的示例啊!谢了
- 最近被applet和servlet的通讯所困,希望哪位高人能给个简单明了的例子,详情见内.
- 如何动态建立一个数据连接,然后用户dbgrid显示出来,要简单明了!在线等。。谢了!!
- 哪位大侠说说 raiserror 的用法,和 return怎么区别使用呢? 最好能举出几个简单明了的例子, 帮助里说的挺繁的!




