Print Page | Close Window

Modify records before drop

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=10580
Printed Date: 23 September 2024 at 9:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Modify records before drop
Posted By: znakeeye
Subject: Modify records before drop
Date Posted: 10 May 2008 at 1:11pm
I drag records from Report1 containing CBlackRecords and drop them into Report2 with CBlueRecords. Thus, before the drop I need to make a conversion.
 
Previously, I did this in OnBeforePaste(). Due to the design-change I cannot do that anymore. Any ideas?
 
I tried handling XTP_NM_REPORT_DROP, re-assigning the drop-records (and freeing the old ones) but this causes a crash at XTPReportControl.cpp(3982). I also tried removing all records and add the new ones, but I cannot figure out how to do this correctly. CXTPReportRecord::Move() does not suffice, it seems...
 
Bug? If there is no other way to accomplish the above, I believe you should change this: CMDTARGET_RELEASE(pDropRecords);
to this: CMDTARGET_RELEASE(nmData.pRecords);



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