简单的一个记录报告 [英] Simple One Record Report

查看:58
本文介绍了简单的一个记录报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的人是问题,我想象的很简单。

我有一个简单的联系人数据库,其中包含链接表联系人/工作

I have a simple Contacts database with a linked tables Contact / Jobs

我想要做的就是将ContactsID文本框传递给报告,并在报告中仅显示该记录。

All i want to do is pass the ContactsID textbox to the report and show only that record in the report.

我只是这样做它可以打印,但我想学习如何使用Crystal Reports供以后使用。

I am simply doing it so it can be printed, though i want to learn how to use Crystal Reports for later use.

我查看了论坛,无法找到解决这个简单问题的方法。

I have looked through the forums and cant find the solution to this simple problem.

我用Visual Studio 2008中的VB

I use VB in Visual Studio 2008

一些有用的信息

Field = Contact.ContacID

Field = Contact.ContacID

Report = simplelead .rpt

Report = simplelead.rpt

Viewer = CrystalReportV iewer1

Viewer = CrystalReportViewer1

包含Viewer = reportviewer的表单

Form Containging Viewer = reportviewer

我也是不希望提示显示。

Also i do not want the prompt to show.

提前致谢。

推荐答案

我只是创建一个sql存储过程...将contactid文本框值传递给存储过程并在存储过程中选择该1个记录...然后使用数据集返回以填充水晶报告
i would just create a sql stored procedure ... pass the contactid textbox value to the stored procedure and ... in the stored procedure select that 1 record ... then use the dataset that is returned to fill the crystal report


这篇关于简单的一个记录报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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