473,563 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slow Crystal Report Loading C# VS.Net 2005

Coldfire
289 Contributor
I am having problem with slow crystal report loading plus slow dataadapter.fil l method
here is my code

[HTML]
string SelectCmd = "SELECT * FROM EnterInstituteI nformation WHERE EnterInstituteI nformation.Inst ituteID=" + ID;

this.oleDbSelec tCommand1.Comma ndText = SelectCmd;

oleDbSelectComm and1.Connection = oleDbConnection 1;
oleDbDataAdapte r1.SelectComman d = oleDbSelectComm and1;

oleDbDataAdapte r1.Fill(dsEnter InstituteInform ationFullReport 1);

//--Initializing CrystalReport
InstituteReport rpt;
rpt = new InstituteReport ();
rpt.Load("Insti tuteReport.rpt" );
rpt.SetDataSour ce(this.dsEnter InstituteInform ationFullReport 1);
this.crystalRep ortViewer1.Repo rtSource = rpt;

this.Show(); //form at which crystalreportVi ewer lies
this.oleDbConne ction1.Close();[/HTML]
give me some hints to improve the speed of loading crystalreports
Mar 24 '07 #1
5 3793
Coldfire
289 Contributor
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 Recognized Expert Specialist
Are you still running debug mode? Please provide more information. Thanks.
Mar 24 '07 #3
Coldfire
289 Contributor
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]
oleDbDataAdapte r1.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 Contributor
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/DataTable201117 2005235038PM/DataTable20.asp x

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
farooqbob
11 New Member
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(ByV al SelectQuery As String) As Boolean
Dim mycon As OleDbConnection
Dim da As OleDbDataAdapte r
Try
mycon = New OleDbConnection
mycon.Connectio nString = gconnString
'Dim sqlstmt As String = "Select NriName, ADDRESS from ADDRESS_BOOK"
da = New OleDbDataAdapte r(SelectQuery, mycon)
' Remember to change data source as applicable.
DSrpt = New DS_ADDRESS
da.Fill(DSrpt, "ADDRESS_BO OK")

rpt = New RptAdress
rpt.Database.Ta bles(0).SetData Source(DSrpt)
RptAddressViewe r.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
15131
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 designer it shows up very fast. When the report is printed from my application it takes about ten times as long to get the report to appear. When...
4
5468
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 viewer but for some reason, I can't create an instance of this report. Therefore, I can't set any of its properties. The only way I was able to run it...
1
2300
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 crystal reports customer support is very poor and their 'case management' tool refuses to function. i'm posting here in the hope that someone may...
0
1797
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 the crystal report view it shows all the values from the discrete parameter. But when I export the report it only shows the values from the last...
0
2788
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 the crystal report view it shows all the values from the discrete parameter. But when I export the report it only shows the values from the last...
2
2316
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. The error I receive tells me that I did not provide @Location parameter with a value. Also to note is the database changes at runtime. 'This...
1
3003
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 to retrieve the image location and load to the OLE Object , Which i have placed in the report to hold the image. But If i suppose tostore any static...
1
2249
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 InnerException's Source is "Analysis Server", it's message is "Failed to open report." (little redundant??) and under the TargetSite, the Module is...
0
943
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 Crystal Reports merge module to the package along with the project content and output. The package was built and installed on a test server. The...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.