Print Page | Close Window

Report coloring in Ribbon app

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=13942
Printed Date: 24 September 2024 at 4:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report coloring in Ribbon app
Posted By: Bart6
Subject: Report coloring in Ribbon app
Date Posted: 07 April 2009 at 4:47am
Dear Support

I'm using the ReportControl in a Ribbon application, but i noticed that the coloring in the Report Control is not the same as for the Ribbon.



What is the recommended way of aligning the ReportControl painting to the Ribbon colors?
I could use pick the colors manually from the Ribbon PaintManager, but that doesn't feel right.

Thanks
Bart



Replies:
Posted By: SuperMario
Date Posted: 08 April 2009 at 9:16am
CString csStylesPath(szStylesPath);
int nIndex = csStylesPath.ReverseFind(_T('\\'));
if (nIndex > 0) {
csStylesPath = csStylesPath.Left(nIndex);
}
else {
csStylesPath.Empty();
}

XTPOffice2007Images()->SetHandle(csStylesPath + _T("\\Styles\\Office2007Black.dll"), _T("OFFICE2007BLACK.INI"));



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