Print Page | Close Window

A question about Records Deleting In Report

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23162
Printed Date: 06 May 2024 at 4:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: A question about Records Deleting In Report
Posted By: linyilong
Subject: A question about Records Deleting In Report
Date Posted: 17 October 2016 at 11:42pm
I have three ways to clear records in report :

CXTPReportControl m_report;

1 . m_report.GetRecords()->RemoveAll(); //but it can't release space

2.m_report.ResetContent();

3.
int RowNumAll = m_report.GetRecords()->GetCount();
// 
if (RowNumAll>0)
{
for (int i = 0;i<RowNumAll;++i)
{
CXTPReportRecord *pRecord = m_report.GetRecords()->GetAt(0);

if (!pRecord)
{
return false;
}

m_report.RemoveRecordEx(pRecord);
}
}

When the report comtrol contains a mass of records, it will be quite slow to clear the report by the ways above, for example , I have create a report containning three million records ,and the time spent to clear shis report is up to 20mimutes.. who konws the best to figure out this problem?
MY Computer config: 
(Processor: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz,   Memory: 8192MB RAM)


-------------
I am whatever



Replies:
Posted By: olebed
Date Posted: 26 October 2016 at 6:15am
Hello,

For millions records we advise to use virtual mode in ReportControl.

Regards,
 Oleksandr Lebed



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