Link to home
Create AccountLog in
Visual Basic.NET

Visual Basic.NET

--

Questions

--

Followers

Top Experts

Avatar of suresh_bansal
suresh_bansal🇮🇳

Slow opening of Crystal Reports in .NET Run time
Hi all

We have been using Crystal Reports for about  8 years from now. We designed all the the reports in Crystal Reports Ver 8.0

We have our applications running in VB6 . Same crystal reports get opened very fast almost instantly. Crystyal Reports (as comes with Older Visual Studio for VB6) staled along with VB Setup installation. In VB6 application we used to add reference of Crystal Report engine - and gets embedded in the VB6 installation.

Same application we ported it to .NET and we run the Crystal Reports .NET Run time over the client nodes. We use CRRedist2005_x86.msi file (about 16736 kb dt. 10/24/2007) for the Crystal Reports .NET run time installation for our Crystal Reports in VB.net windows application. Crystal Reports are still old which were designed in Crystal Reports 8.0 We purposely dont' shift to later version for the sake of compatibiity.

We find very slow response for opening of the Crystal Report in VB.NET application for the 1st time. It takes approx 20 secs to 40 secs many times for even single page report which would open in just 1 second in Vb6 windows application.. Once it opens up, later the same report would open up almost instanly. This happens with almost majority of the reports. For the 1st time it would take time and in the 2nd time onwards it would open up instantly. If we exit from the system ->Go to VB.Net application again (without shut down) we will get the same irritating behaviour again. This we have tested on many client nodes with very good configuration say 1GB RAM, Pentium Dual Core System.

We think this may be bug in the Crystal Reports .NET Runtime installation file as the same reports with the same logic opens in VB6 application almost instanly each time and every time.

This behaviour is very different in VB.Net application for opening of the Crystal Report.

Can you suggest some remedy for the irritating opening of crystal report (designed in ver 8.0) - opening in VB.net windows application.

Bansal
























Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Nasir RazzaqNasir Razzaq🇬🇧

This is down to the .NET implementation of Crystal Reports. I face the same problem in my applications. When the report is loaded first time, the CLR has to load dozens of DLLS related to Crystal Reports. Loading and initializing these DLLs takes time. But if you open the report again, these DLLs are already in memory so it loads straight away. When you close the app, the DLLs get unloaded and the behavior is repeated. It really is irritating. In one of my apps, the report is huge on more than 40 pages with links to dozens of pictures, logos etc and it takes many minutes to load each time rather than seconds.

ASKER CERTIFIED SOLUTION
Avatar of Éric MoreauÉric Moreau🇨🇦

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

That may be the issue.  One other thing to try would be to upgrade/convert a report to the Crystal.Net format to see if that speeds loading.

Crystal will convert the reports to the correct format when it tries to display them.

mlmcc

Avatar of suresh_bansalsuresh_bansal🇮🇳

ASKER

Reply to mlmcc

This begaviour is not uniform. Sometimes this takes 10-20 seconds, other time it may take 30-50 seconds for the same report. Next time the same report may be available in just less than 2 seconds.

This behaviour irritates.

As report by emoreau, we also tried to pre-load the Crystal Assemblies at the start of application by opening dummy crystal report but that also did not work.

As regards designing of Crystal Reports with Crystal.net is concerned, it also does not sound perfect as with our existing Rpt files, in 50-60% of the times, it would open in less than 3-4 second.

Some service patck is desired from Seagate for Crystal Reports in .NET to overcome this problem.

We came across Crystal Reports Service Pack 1 from their site, we tried that but without any benefit for this particular problem. They must have corrected some other problems which we did not face.

Kindly let us know, if there is some service pack for Crystal Reports.net to overcome this particular problem of slow opening of the crystal reports.


Regards

Suresh Bansal


 








Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


When applying service packs make sure you get the correct one.  They are version specific.  For example the CR10 service pack doesn't work with the CR in Visual Studio even though it is also CR10.

mlmcc

Avatar of suresh_bansalsuresh_bansal🇮🇳

ASKER

Thanks for the sample code for Pre-loading of default crystal assemblies. Solution should work
to some extent.

Bansal


Avatar of gcook17gcook17🇺🇸

The best solution is do not use Crystal reports. I have the same problem. Sometimes reports load very quickly. Other times same report takes a 30 seconds or longer. Tried to used CR2008 Sp 3 but it crashes Installshield Pro.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.

Visual Basic.NET

Visual Basic.NET

--

Questions

--

Followers

Top Experts

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,