Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to impove the performance in C#.NET?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to impove the performance in C#.NET?

 Post Reply Post Reply
Author
Message
daguda View Drop Down
Newbie
Newbie


Joined: 04 September 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote daguda Quote  Post ReplyReply Direct Link To This Post Topic: How to impove the performance in C#.NET?
    Posted: 26 September 2012 at 12:26am
I just found that Report Control in C#.NET takes 50 times slower than it in VB6, take a look at these two demos:

(1)Open C#.NET\ReportSample\ReportSample.sln project, then edit this code:

for(int k=0 ; k<1000;k++)
      AddRows();


It takes about 58.3 seconds to add 18013 rows.


(2)Open VB\ReportSample\ReportSample.vbp project, add the following lines:

(a)
    cstrCJlink = "https://forum.codejock.com"

    Dim j As Long          ' < ---------- add
    For j = 1 To 1000    ' < ---------- add

   
    'Start Adding Records with the AddRecord helper subroutine
    'Look at the AddRecord subroutine for a more detailed explanation

(b)
    Next   '<----------- add
    'Vertical grid lines will be drawn as small dots
    'wndReportControl.PaintManager.VerticalGridStyle = xtpGridSolid


It takes only 1.1 seconds to add 18013 rows.



How to impove the performance in C#.NET?

Any advice would be greatly appreciated!!
Thank you!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.