向crystalreport viewer发送数据的问题 [英] problem in sending data to crystalreport viewer

查看:84
本文介绍了向crystalreport viewer发送数据的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,



i有一个带有查询的表单我可以从数据库中读取数据并将它们放入一个数据集中,该数据集中有一个datatable.i搜索了多个这个错误,我没有找到任何关于it.i的信息。我把所有必要的代码放在crystalreportviewer中显示数据,但它没有显示任何东西。是否有任何文件放在app.config文件中或晶体报告和Visual Studio和sqlserver 2008R2之间有任何关系。我正在使用水晶报告版本13和visual studio 2010.我使用.net框架版本4.0



谢谢

hi friends,

i have a form that with a query i can read data's from database and put them into a dataset that have a datatable.i searched many for this error and i do not find any information about it.i placeed every necessary code for showing data in crystalreportviewer but it do not show any thing. is there any file for put in the app.config file or is there any relation between crystal report and visual studio and sqlserver 2008R2. i am using crystal report version 13 and visual studio 2010. and i use .net framework version 4.0

thank you

推荐答案

确保在运行时获取 DataSet 中的数据。

此问题的可能解决方案。

Crystal Reports:避免空白页 [ ^ ]

水晶报告 - 神秘的空白页面 [ ^ ]

Crystal Report空白/空/不显示。没有屏幕错误,但事件日志'ConfigurationErrorsException'收到 [ ^ ]



并检查这一个

Crystal Report在一段时间后不显示 [ ^ ]
Ensure you get data in your DataSet in runtime.
Here possible solutions for this issue.
Crystal Reports: Avoiding Blank Pages[^]
Crystal reports - Mysterious blank pages[^]
Crystal Report Blank / Empty / Not Displaying. No On-Screen Error, But Event Log ‘ConfigurationErrorsException’ Received[^]

And check this one too
Crystal Report doesn't show after some time[^]


您没有提供足够的信息。它是windows窗体还是asp.net窗体?

之前我提取了更为简单的问题类型。使用长整数数据会发生这种情况。有时候会发生不正确的白色数据集。所以首先检查数据类型和白色数据集,如给定示例。



You no give enough information. Is it windows form or asp.net form?
I fetch slimier type of problem before.That is happen for use long integer data.Some time its happen for not correctly white dataset. So first check data type and white dataset like given example.

var ds = new DataSet(datasetName;);


 var query ="Your SELECT Query";

//Populate Your DataTable

 ds.Tables.Add(dataTable);

 ds.WriteXmlSchema(@"../../DataSetFile/DataSet.xsd");//after ending your code writing run your project  and run your cReport. after then comment out this line.



我认为它对你有帮助。

谢谢。


I think its helpful for you.
thanks.


1确保您的PC中安装了正确和正确的水晶报告我的意思是scn.sap.com上有一些版本不支持Visual Studio集成。



i建议您下载此版本

http:// downloads .businessobjects.com / akdlm / cr4vs2010 / CRforVS_13_0_5.exe [ ^ ]





然后按照这个简单的步骤创建水晶报告



使用Crystal生成报告Visual Studio 2010中的报告 [ ^ ]
1 st make sure sure you have correct and proper crystal report installed in your PC i mean there are some versions on scn.sap.com which does not support visual studio integration.

i will suggest you to download this version
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe[^]


and then after follow this simple steps to create crystal report

Generate a Report using Crystal Reports in Visual Studio 2010[^]


这篇关于向crystalreport viewer发送数据的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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