使用3个数据表设计crytal报告 [英] designing crytal report using 3 datatable

查看:107
本文介绍了使用3个数据表设计crytal报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们好,

作为CR的新手,我不知道如何使用超过1个数据表设计报告。

as i m new to CR i don't know how to design report using the more than 1 datatable.

即时通讯使用访问数据库n尝试使用查询获取记录。

i m using the access database n try to fetch the records using the query.

这就是我非常喜欢的事情。

This is what i m exatly doing.

da = OleDb.OleDbDataAdapter

da = New OleDb.OleDbDataAdapter

< font color ="#0000ff"size = 2> Dim rp As crpt

cmd.CommandText ="选择cur_add1,cur_add2,cur_city,short_list.cnd_name,来自candidate_profile的clnt_name,short_list,其中short_list.cnd_name = candidate_profile.cnd_name"

cmd.CommandText = "Select cur_add1,cur_add2,cur_city,short_list.cnd_name,clnt_name from candidate_profile,short_list where short_list.cnd_name=candidate_profile.cnd_name"

da.SelectCommand = cmd

da.SelectCommand = cmd

ds.Relations.Add(" cnd_sl",ds.Tables(" candidate_profile")。列(" cnd_name"),ds.Tables(" short_list")。列(" cnd_name"), False

ds.Relations.Add("cnd_sl", ds.Tables("candidate_profile").Columns("cnd_name"), ds.Tables("short_list").Columns("cnd_name"), False)

da.Fill(ds," cnd_sl")

da.Fill(ds, "cnd_sl")

crpt.SetDataSource(ds.Tables(" cnd_sl"))

crpt.SetDataSource(ds.Tables("cnd_sl"))

crviewer.ReportSource = crpt

crviewer.ReportSource = crpt

当我使用数据网格显示此结果时,此查询正常工作但在运行时使用CR会弹出数据库登录屏幕。我不知道如何解决这个问题。

this query is working fine when i m displaying this result using the datagrid but with CR at run time it pops up the database Login screen. i don't know how to slove this problem.

在设定CR时有什么错误或什么?

is there any mistake while desinging the CR or what??

推荐答案

您需要设置crystal的登录信息才能启动。查看这篇文章了解细节。

You need to set the logon info for crystal, to start.  Check out this article for details.

 


这篇关于使用3个数据表设计crytal报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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