473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Slow Crystal Report Loading C# VS.Net 2005

Coldfire
289 100+
I am having problem with slow crystal report loading plus slow dataadapter.fill method
here is my code

[HTML]
string SelectCmd = "SELECT * FROM EnterInstituteInformation WHERE EnterInstituteInformation.InstituteID=" + ID;

this.oleDbSelectCommand1.CommandText = SelectCmd;

oleDbSelectCommand1.Connection = oleDbConnection1;
oleDbDataAdapter1.SelectCommand = oleDbSelectCommand1;

oleDbDataAdapter1.Fill(dsEnterInstituteInformation FullReport1);

//--Initializing CrystalReport
InstituteReport rpt;
rpt = new InstituteReport();
rpt.Load("InstituteReport.rpt");
rpt.SetDataSource(this.dsEnterInstituteInformation FullReport1);
this.crystalReportViewer1.ReportSource = rpt;

this.Show(); //form at which crystalreportViewer lies
this.oleDbConnection1.Close();[/HTML]
give me some hints to improve the speed of loading crystalreports
Mar 24 '07 #1
5 3782
Coldfire
289 100+
just to mention...
i am using MS Access Database with only few records may be 5 and the table contains 14 columns.
Mar 24 '07 #2
kenobewan
4,871 Expert 4TB
Are you still running debug mode? Please provide more information. Thanks.
Mar 24 '07 #3
Coldfire
289 100+
Are you still running debug mode? Please provide more information. Thanks.
Yes, but I also have checked it in Release mode, the delay is almost same.

[HTML]
oleDbDataAdapter1.Fill(dt); //taking 30 secs almost
.....
.....
.....
this.Show(); //this fucntion loads crystalreport and is taking 15-20 secs
[/HTML]


One more thing,
can I pull data in crystalreport without dataadapter/dataset
Mar 24 '07 #4
Coldfire
289 100+
if this is the reason ....
[HTML]In previous versions of ADO.NET, if you used a DataSet (Who haven't), you most likely are familiar with slow performance of the DataSet when loading and serializing a large amount of data. Now ADO.NET team has done a fantastic job by taking care of these problems in ADO.NET 2.0 by extending the DataSet and the DataTable classes.

In previous versions of ADO.NET (1.0 and 1.1), it was all about the DataSet and the DataTable was a slave of the DataSet. In ADO.NET 2.0, the DataTable object celeberates independence from the DataSet and brings much more to the table for developers. [/HTML]
@
http://www.c-sharpcorner.com/UploadFile/mahesh/DataTable2011172005235038PM/DataTable20.aspx

But i am using .NetFramwork 2.0 and building my application in VS.Net 2005. From where can I see that my ADO.Net version is 1.1 or 2.0.(obviously it should be 2.0).
Do I need to upgrade ado.net 2.0 further. If yes, than how?
Mar 30 '07 #5
It can help u


Private rpt As RptAdress 'this is a crystal report class genrated by .net
Private DSrpt As DS_ADDRESS ' this is Dataset XSD class

Public Function LoadRptData(ByVal SelectQuery As String) As Boolean
Dim mycon As OleDbConnection
Dim da As OleDbDataAdapter
Try
mycon = New OleDbConnection
mycon.ConnectionString = gconnString
'Dim sqlstmt As String = "Select NriName, ADDRESS from ADDRESS_BOOK"
da = New OleDbDataAdapter(SelectQuery, mycon)
' Remember to change data source as applicable.
DSrpt = New DS_ADDRESS
da.Fill(DSrpt, "ADDRESS_BOOK")

rpt = New RptAdress
rpt.Database.Tables(0).SetDataSource(DSrpt)
RptAddressViewer.ReportSource = rpt

Return True
Catch ex As Exception
Throw ex
End Try
End Function
Mar 31 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
4
by: VMI | last post by:
For my website, I created CrystalReportTest.rpt (through the designer in VS 2005) and I'd like to be able to display it in viewer.aspx (all in the same project). Viewer.aspx has a Crystal Report...
1
by: Tim_Mac | last post by:
hi, i am encountering a sporadic exception using crystal reports that is causing me grief, I can't 'handle' it... my code is loading a typed report, and loading a DataSet to it. unfortunately...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
2
by: Charlie Brown | last post by:
The following code is what I have been using in .net 1.1 for years. Now upgrading to .net2.0 and Crystal reports for vs2005, it no longer works, although as far as i can tell it is still supported....
1
by: ramkumar533 | last post by:
Hi All.. Now i am doing a Project related with students report. There i need to display the each student profile with his image.. The image location is stored in the database table. While i tried...
1
by: Tomizechsterson | last post by:
I have an app, that when it calls ReportDocument.Load(filename), it throws an Exception that just says "Load report failed." Upon further investigation, the ErrorCode is -2147483136, the...
0
by: Mark Stevens | last post by:
I am having problems trying to solve a problem with Crystal Reports. We have a web site which we have turned into a Web Application using Visual Studio 2005. We built the installer and added the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.