Print Page | Close Window

FooterRecords, HeaderRecords and markup

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=15492
Printed Date: 28 April 2024 at 9:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FooterRecords, HeaderRecords and markup
Posted By: crystyce
Subject: FooterRecords, HeaderRecords and markup
Date Posted: 29 October 2009 at 8:56am
Hi,

I noticed that HeaderRecords and FooterRecords (wich are very usefull) can't use Markup. That's because EnableMarkup creates a MarkupContext just for plain records.

You can make this work by modifying CXTPReportControl::EnableMarkup like this:

void CXTPReportControl::EnableMarkup(BOOL bEnable)
{
     BOOL bOldEnable = GetMarkupContext() != NULL;
     if (bOldEnable == bEnable)
          return;

     XTPMarkupReleaseContext(m_pRecords->m_pMarkupContext);
     XTPMarkupReleaseContext(m_pHeaderRecords->m_pMarkupContext);
     XTPMarkupReleaseContext(m_pFooterRecords->m_pMarkupContext);


     if (bEnable)
     {
          m_pRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);          m_pHeaderRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);
          m_pFooterRecords->m_pMarkupContext = XTPMarkupCreateContext(m_hWnd);

     }
}

My question is: will this fixes (including the one here: http://forum.codejock.com/forum_posts.asp?TID=15129 - GroupRow, Hyperlink and markup ) ever be included in a release?

Because now when you will make a release I have to make the changes all over again for every computer.

-------------
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008



Replies:
Posted By: mdoubson
Date Posted: 29 October 2009 at 3:36pm
We can consider it but not in 13.2.1 - later

-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 29 October 2009 at 10:10pm
I tested it - it works and I updared SVN - so it will be in 13.2.2 but you can get fresh source update here now - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar

-------------
Mark Doubson, Ph.D.


Posted By: zaksoft
Date Posted: 01 November 2009 at 7:46am
Source from release have always the same date/time, yours (probably) real update time, from MFC source all
#define ACTIVEX
are removed, so it's difficult to understand witch files have been updated, I use Araxis Merge to compare folders, (since date cannot be used) but it's very difficult and can be error proning.
 
Already scheduled 13.2.2 release ?
 
TIA


-------------
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com



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