PC Review


Reply
Thread Tools Rate Thread

CrystalReportviewer doesn't close the DB connection

 
 
Karthik
Guest
Posts: n/a
 
      31st May 2007
We are using the CrystalReportviewer on an ASP.NET page to render the
reports. The data binding is done by binding the ReportSource member
variable of the viewer to the InfoObject class instance, (after
casting to Report).

// infoobjects is the collection returned by querying the Business
Objects server.
crystalReportViewer.ReportSource = (Report)infoObjects[1];

According to the documentation, the viewer control itself is
responsible for opening the DB connection (based on the data sources
specified in the infoObject). Everything works fine. But the DB
connection opened by the viewer control is active even after closing
the client. (Actually the web page is accessed by a windows client via
the Internet Explorer ActiveX control). The number of connections
would increase every time we render a new report. The connections
never get released even after closing the client.

There is no way we can access the connection used by the viewer
control and close it explicitly, as the binding model doesn't support
it. What are we missing here?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CrystalDecisions.Web.CrystalReportViewer is not compatible with the type of control CrystalDecisions.Web.CrystalReportViewer =?Utf-8?B?UmV6YSBOYWJp?= Microsoft ASP .NET 4 21st Sep 2009 05:30 PM
docmd.close forms - doesn't close the form Wuelf Microsoft Access Reports 1 18th Nov 2008 01:05 PM
How to Assign Connection Param for CrystalReportViewer?? Bob Powell [MVP] Microsoft Dot NET Framework Forms 4 17th Jun 2005 04:30 PM
Connection of OracleDataAdapter doesn't close Theodor Ramisch Microsoft ADO .NET 6 26th Aug 2004 02:19 PM
CrystalReportViewer close button? dzemal_t_mo Microsoft VB .NET 1 22nd Jul 2004 05:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 AM.