Print Page | Close Window

Report control update

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1512
Printed Date: 27 April 2024 at 6:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report control update
Posted By: haiku
Subject: Report control update
Date Posted: 10 December 2004 at 6:07am

Hello Developers,

I want to know how to update control efficiently. If only one row/record has to be updated, than entire control is being redrawn (BeginUpdate/EndUpdate). Calling InvalidateRect(...) with correct rectangle is useless. I collected the needed rectangle from CXTPReportRow::GetRect() method. It's useless 'cos CXTPReportControl::OnPaint message handler will paint the control only when IsChanged method returns TRUE.

Why didn't you use CXTMemDC in OnPaint handler ? You don't use GetClipBox function while drawing the control. Why ?

Please correct me if I miss something or don't understand correctly. All I want is to update few records efficiently.

Best regards,

Haiku.




Replies:
Posted By: ICBM
Date Posted: 10 December 2004 at 2:17pm
I am interested in this also. Oleg, are you around ?


Posted By: mhamsa
Date Posted: 16 December 2004 at 12:32pm
Use the Populate method on the report control.


Posted By: haiku
Date Posted: 27 December 2004 at 2:21am

Dear mhamsa,

Are you completely sure this is the answer to my question ?

Best regards, Haiku.



Posted By: sserge
Date Posted: 04 January 2005 at 6:01pm
Hi haiku,

I believe it is not possible to redraw a small piece of the control in the current version. However, during redraw it updates only visible part of the picture and uses picture caching in memory. Really, it seems to provide well enough performance. Any objections?

--
Regards,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net