Print Page | Close Window

VisualThemee Problem with Office2013.dll

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


Topic: VisualThemee Problem with Office2013.dll
Posted By: Fabian
Subject: VisualThemee Problem with Office2013.dll
Date Posted: 28 July 2013 at 7:35am
If I use Reportcontrol1.VisualTheme=xtpReportThemeResource in conjunction with the Office2013.dll the header part is all black:
 
 
I has to set the theme to Office2013:
 
 
If I use other dlls, like Office2010 xtpReportThemeResource works as expected:
 
 
Is this a bug or a feature???
 
Thanks for looking at it
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: SuperMario
Date Posted: 29 July 2013 at 9:25am
You have to set to 2013 theme:

    ReportControlGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2013.dll", "Office2013White.ini"
    wndReportControl.VisualTheme = xtpReportThemeOffice2013


Posted By: Fabian
Date Posted: 29 July 2013 at 10:17am
Yes, I saw that. But only for Office2013. For all other themes 'Resource' is OK!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: PhilM
Date Posted: 01 August 2013 at 11:07am
This seems like a step backwards. So now we have to change all the code for each object and set 'VisualTheme' to different values depending on whether a user selects the 2013 style or not. Please make Office2013.dll work with the 'Resource' setting. Thanks.

-------------
Product: Xtreme SuitePro (ActiveX) version 17.3.0

Platform: Windows 10 / Windows 7

Language: Openedge 11.6



Posted By: PhilM
Date Posted: 27 February 2014 at 10:14am
Still needs fixing Dead

-------------
Product: Xtreme SuitePro (ActiveX) version 17.3.0

Platform: Windows 10 / Windows 7

Language: Openedge 11.6



Posted By: astoyan
Date Posted: 13 April 2014 at 12:30pm
Unfortunately it is impossible to make Office2013 theme work with xtpReportThemeResource  because those themes are implemented in completely different way. While Office2007/2010 are pure resource-only themes, meaning all size, color and image data are located in a specified resource and a general Resource theme renders it in a uniform way, Office2013 has its own rendering code, which is impossible to substitute by a resource theme.
We agree, it is an issue, but it is an issue of theme naming, not implementation. It would not cause any confusion if there were xtpReportThemeOffice2007 and xtpReportThemeOffice2010 from the very beginning with internal resource theme loading mechanism, but now making such changes won't affect the existing problem.
So, it's just a peculiarity that you have to take into account when switch themes. In the meantime we'll try to figure out how to prevent this issue in future.

Thank you.
Regards,
  Alexander Stoyan


Posted By: PhilM
Date Posted: 09 July 2014 at 4:12am
For us it means changing 30 programs instead of just the 1 to add the new theme file, like for all the previous new themes but I suppose if you're limited by how it works then it doesn't matter. 2013 and VS 2012 themes don't work for us anyway so we're not using them. Thanks for the reply though.

-------------
Product: Xtreme SuitePro (ActiveX) version 17.3.0

Platform: Windows 10 / Windows 7

Language: Openedge 11.6




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