ASP.NET - 使用SQL TABLE创建CRYSTAL报告 [英] ASP.NET - CRYSTAL REPORT CREATION USING SQL TABLE

查看:52
本文介绍了ASP.NET - 使用SQL TABLE创建CRYSTAL报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio 2010 C#的新手。我正在创建一个带有水晶报告的Web应用程序。我想从sql表创建单独的生产报告和综合报告。



我有两张桌子即



员工硕士(EmpID,EmpName)





JobCard Master(JobDate,Clientname,jobcope,jobname, jobdoneby jobqcby









我要一个结果,比如



报告标题



EmpId EmpName #JobsDone #JobsQcDone





#JobsDone - 需要计算列中完成的工作数量

#JobsQcDone - 需要计算列中完成的qcjobs数量< br $>




请帮我解决一下我的情况。



谢谢提前。

I am new to Visual Studio 2010 C#. I''m creating an web application with crystal report. I want to create individual production report and consolidated report from sql table.

I have have a two tables i.e.

Employee Master (EmpID, EmpName)


JobCard Master(JobDate,Clientname,jobscope,jobname,jobdoneby,jobqcby)




I want a result like

Report header

EmpId, EmpName, #JobsDone, #JobsQcDone


#JobsDone - Need to count # of jobs done in column
#JobsQcDone - Need to count # of qcjobs done in column


Please help me to get solution for my situation.

Thanks in advance.

推荐答案

步骤:

1.编写查询以根据需要获取数据

2设计水晶报告,以便显示曲线以表格形式表示结果





现在,关于查询,您需要加入两个表数据并获取它。根据您分享的内容,不清楚连接两个表的内容。您需要找到它并用作JOIN条件。



试试看。如果您遇到任何问题,请发布具体问题。
Steps:
1. Write query to get the data as per need
2. Design the crystal report such that you can display the query result in tabular form


Now, about query, you need to join the two table data and get it. Based on what you have shared, it''s not clear what connects the two table. You need to find that and use as the JOIN condition.

Try out. Post specific issue if you face any.


这篇关于ASP.NET - 使用SQL TABLE创建CRYSTAL报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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