473,326 Members | 2,148 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,326 software developers and data experts.

CrystalReportviewer doesn't close the DB connection

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?

May 31 '07 #1
0 1187

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cuperman | last post by:
Hi All, I am pretty new to Crystal coding and trying to enhance a report that we have created in .Net I have a CrystalReportViewer control which loads a report from Cache memory. This all...
0
by: Shahid | last post by:
Hi, I am using the Crystal Report Viewer. I can get the report to work on the web if the report doesn't have any database connection. However once I put a database connection, I get the "Logon...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
0
by: Marc Callec | last post by:
I'm trying to create an instance of the CrystalReportViewer control within my class in an attempt to return the rendered HTML back to the consumer of the class. Because I haven't added the...
4
by: Stan Sainte-Rose | last post by:
Hi, How to capture the CrystalReportViewer Events. I need to do some actions when the user clicks on the close and print icons. By the way, I thank you for your contributions... Stan
4
by: tg | last post by:
My sincere apologies for the crosspost. I posted in one other ng. I am not sure which is the correct ng for this question.I'm using .NET 2003. This is the first time I've tried to use Crystal...
6
by: tg | last post by:
I've been trying for several days to get a Crystal report to display in a Windows form in VS 2003. I'm not new to .NET, nor to Crystal, but I've never tried to display a report until now. I'm...
3
by: roopsd | last post by:
I am using VS.NET 2003 with crystal reports XI release 2. I get a runtime error at the following line: oRptForm.crystalReportViewer.ReportSource = oReport An unhandled exception of type...
0
by: roopsd | last post by:
Hi Thank you for yuour help. I am using VS.NET 2003 with Crystal XI r2. I am getting NullReferenceException at the following line in my code. oRptForm.crystalReportViewer.ReportSource =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.