Advertisement

05.11.2008 at 06:41AM PDT, ID: 23392678
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Very Slow Initialization of Crystal Reports .NET Run time SP1

Tags: Crystal Decistions, Crystal Reports for .NET Run time, Bundled with Visual Studio 2005
Hi all

We developed Windows application using VB.NET and Crystal Reports bundled with Visual Studio 2005

While running with setup wizard, it is required to install crystal reports run time also along with Framework 2.0 That gave problems in the 1st time that it was required to again run Crystal Reports Run Time installation repair option. This was with Crystal Reports MSI run time bundled with Visual Studio 2005 product.

Crystal Decisions - released Crystal Reports SP1 somewhere in Oct 2007 and the above problem got removed for running the Crystal Reports MSI (Run time) for the 2nd time.

Problem
After installing the Crystal Reports SP1 - .NET Run time installer , it is experienced that initial response for the 1st Report Form Opening has degraded drastically may be to 2-3 minutes on some machine running Windows XP. On some machines , initial response is very slow as compared to previous Crystal reports run time as bundled with Visual Studio 2005.

Sometimes it is felt that the machine has hanged. But once 1st Report Form opens correctly after initial irritating pause - later on all the report forms will keep opening instant as desired and there is no problem subsequently in that  Application Session.  Same behavior is felt with all report forms and as such it is confirmed that there is no problem with code in any particular report form and this problem is in general.  Once the application is closed or System is rebooted, again we need to pass through this much delayed  irritating pause again. We have fully narrowed down this to the initialilization of the Crystal reports .NET Run time.

This problem is just not faced in any other Windows Form related to Data Entry which does not have crystal reports reference.

Any suggestion to overcome this irritating initialization of Crystal Reports .NET Run time engine is badly desired to overcome the feeling of System hanging.  Systems used are normally Windows xp professional with PIV and 1GB RAM.

Regards

Suresh Bansal
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: suresh_bansal
Solution Provided By: suresh_bansal
Participating Experts: 1
Solution Grade: A
Views: 124
Translate:
Loading Advertisement...
05.12.2008 at 07:51AM PDT, ID: 21547476

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 10:27PM PDT, ID: 21552511

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 08:03AM PDT, ID: 21555740

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.13.2008 at 11:57PM PDT, ID: 21561747

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 09:42AM PDT, ID: 21566092

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 10:41PM PDT, ID: 21570875

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 07:35AM PDT, ID: 21574074

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:09PM PDT, ID: 21580154

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:11PM PDT, ID: 21580158

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.17.2008 at 05:54AM PDT, ID: 21589147

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 02:41AM PDT, ID: 21604582

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.12.2008 at 07:51AM PDT, ID: 21547476

Rank: Genius

How are you initializing Crystal?
As far as I know Crystal isn't initialized until you call a form with the viewer.

mlmcc
 
05.12.2008 at 10:27PM PDT, ID: 21552511
Reply to mlmcc

We follow the following method

a) Make rpt file with Crystal Reports development version 8.0 with ttx file i.e active data definition file

b) In VB.NET windows dll project -> We add reference of CrystalDecisions.CrystalReports.Engine ,CrystalDecisions.Shared

c) In the Windows Form for Report ->We give generally following declarations
Dim kcrep As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim tmpdataset As New DataSet

d) Reports Form (made in VB.NET)  is shown to the user with the desired selection criteria for the report. It has Retrieve Button

e) After user gives desired Report Selections ->Clicks Retrieve Button ->Dataset is fetched from the server -> report is opened ->dataset is assigned as under

        kcrep = New CrystalDecisions.CrystalReports.Engine.ReportDocument
        kcrep.load("\\??\invrep6s1.rpt")
        KcCdo(PrintProp1, kcrep, tmpdataset)

here invrep6s1.rpt is the complete path of the rpt file as created in step a) above. KcCdo is our own routene where tmpdataset is assigned to kcrep report object which calls standard 5-7 code lines etc.

e) Individual Report Form is compiled as dll file which is loaded by reflection at the runtime from the calling exe file. Same method is followed for other data entry forms as well as reports.

Problem
i) Slowness is felt only in case of report forms which shows there is no problem with the creation of dll files and/or reflection load method being used. Data entry forms opens instant whereas 1st Report form will take approx 10-20 seconds. On some machines it takes 1-3 minutes till the time user sees Report Form asking for report selection as mentioned in d) above. Once the user clicks Retrieve button on the Report selection form after giving the desired selection step e) runs which takes approx 10 seconds on all machines 1st time.

Once 1st report is shown, later on all the report forms will open instant and
reports would also get retrieved instant say in 1-2 seconds.

Kindly suggest some remedy to overcome this initial Report Form showing to the user as explained in i). We are also thinking to launch some background process at the start of exe file  , but that will not solve the problem for those users who have only report forms access as they will immediately like to access some of the report at the start of exe file.


Suresh Bansal
 
05.13.2008 at 08:03AM PDT, ID: 21555740

Rank: Genius

Do you have Visual Studio or just VB.Net?

CR8 wasn't really meant for use with VB.Net.  You might be better using the version of Crystal that comes with Visual Studio.

mlmcc
 
05.13.2008 at 11:57PM PDT, ID: 21561747
Complete Visual Studio 2005 Professional Legal version is installed.

Further CR8 is used for development purpuses as that provides better design /development environment and that is also legal copy.

>>You might be better using the version of Crystal that comes with Visual Studio -> does not really effect this initial slow response which has been tested. This initial slow response is felt for 1st report only and later all other reports open instant as desired.


Suresh Bansal

 
05.14.2008 at 09:42AM PDT, ID: 21566092

Rank: Genius

Do you convert the reports or simply run them directly?

mlmcc
 
05.14.2008 at 10:41PM PDT, ID: 21570875
Reports are not converted. They are opened ->Pushed dataset into it using CDO methods ->Set values for various formullae fields ->Sown to user

Bansal
 
05.15.2008 at 07:35AM PDT, ID: 21574074

Rank: Genius

Have you built a report in the VS Crystal and run it first?  Is it still slow?

mlmcc
 
05.15.2008 at 10:09PM PDT, ID: 21580154
Yes it is slow in the 1st time. That slowness is felt to 10-20 seconds on some machines. On few machines it takes 1-2 minutes.

But once the Forms shows 1st time, after that opens instant 2nd time and every time till it is rebooted.

Bansal
 
05.15.2008 at 10:11PM PDT, ID: 21580158
Comments are received but getting any help


Bansal
 
05.17.2008 at 05:54AM PDT, ID: 21589147
All Concerned (Asker and Experts),
 
New Feature Alert!
 
Please do not make any post of any kind after a "Closing Request" has been started by the asker - unless you have a specific objection.
 
Any post by anyone--including the Asker!--after the request is made will stop the automated process and force the manual intervention of a Moderator/Admin.
 
If anyone has questions about the process, please post them at the "Link to CS-G post:" below my signature.
 
suresh_bansal - Please start the process again and thank you for using it. When we all get used to the process, it will greatly improve the 'abandoned' question problem.  If you are selecting one of your own posts as the answer, please be sure to post a fully-detailed description of your self-solution.
 
If you have specific responses or posts you need to make, please do so before starting the process again.
 
modus_operandi
EE Moderator
 
Link to CS-G post:
http://www.experts-exchange.com/Q_23407437.html
 
05.20.2008 at 02:41AM PDT, ID: 21604582
Hi all

We found some workaround in our application by starting the background process immediately on the start of application. In the background we declared Dim kcrep As CrystalDecisions.CrystalReports.Engine.ReportDocument  then opened some dummy report and then closed it.

It solved the problem of initial slowing down of the Form being shown to the user

Suresh Bansal

Accepted Solution
 
 
20080716-EE-VQP-33 / EE_QW_2_20070628