如何在不使用向导的情况下通过代码连接两个表并在水晶报表中显示详细信息 [英] How to join two table and show details in crystal report by code without using wizard.

查看:67
本文介绍了如何在不使用向导的情况下通过代码连接两个表并在水晶报表中显示详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用向导的情况下通过代码连接两个表并在水晶报表中显示详细信息。请帮忙给出一些想法或解决方案



我尝试过:



我尝试在互联网上搜索但找不到任何解决方案。尝试了不同的代码,但没有成功。

How to join two table and show details in crystal report by code without using wizard. please help give some idea or solution

What I have tried:

I tried searching on the internet but can't find any solution. tried different code but no success.

推荐答案

您可以在表格适配器中编写连接查询(通过右键单击表适配器)在水晶报表中使用



查找Database.xsd并打开



右键单击tableadapter并选择配置



这里写你的加入查询并在报告中使用这个适配器
You can write Join query in table adapter(By Right Click on table adapter) which you are using in crystal report

Find Database.xsd and Open

Right click tableadapter and select Configure

Here write your Join Query and use this adapter in report


这篇关于如何在不使用向导的情况下通过代码连接两个表并在水晶报表中显示详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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