在VB .NET中创建水晶报表 [英] create a crystal report in VB .NET

查看:98
本文介绍了在VB .NET中创建水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我遵循了有关如何在连接到SQL 2008 SERVER数据库的VB .NET 2008中创建水晶报表的教程,也遵循了本教程 http://vb.net-informations.com/crystal -report/vb.net_crystal_report_step_by_step.htm ,但是当我预览报表时,我得到了与数据库无关的数据,当我运行VB项目并按下按钮时,Crystal报表查看器中没有任何数据.有帮助吗?

谢谢
Kyriakos

Hello,
I have followed a tutorial on how to create a crystal report in VB .NET 2008 connected to an SQL 2008 SERVER database, I have followed this tutorial http://vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm but when I preview the report I get data which are irelevant with the database and when I run the VB project and press the button I get no data in the crystal report viewer. Any help?

Thank you
Kyriakos

推荐答案

要么在代码中发布您遇到的错误以及确切地卡在哪里,要么参考一些CP文章&答案:
如何在VB中加载和显示Crystal报表. NET [ ^ ]

CodeProject搜索 [
Either post your code what error you''re getting and where exactly you get stuck''d or refer some CP articles & answers:
How to Load and Display Crystal Reports in VB.NET[^]

and CodeProject Search[^]


我没有错误,只是空数据,因为报表数据源没有从数据库中获取数据.
I get no error just null data as the reports datasource is not getting data from the database.


您好,
问题是我使用的是sqldataadapter(ADO XML),我使用的是oledbdatadapter(ADO .NET)并正常获得了结果.我不知道为什么第一个对象不起作用.
Hello,
The problem was that I was using sqldataadapter (ADO XML), I have used oledbdatadapter (ADO .NET) and got the results normally. I don''t know why the first object didn''t work.


这篇关于在VB .NET中创建水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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