Page 1 of 1

BackgroundImage not saving on Export

Posted: Mon Nov 26, 2018 3:21 pm
by 13050364
Hello everyone

It appears if you set the BackgroundImage from code then this background image is not saved when you do "Export.Template.Save(fileName)"
Or at least when I do "Import.Template.Load(fileName)" the BackgroundImage property is set to null.

It works OK if I set the BackgroundImage from the development environment (ie. not from software)

For info we are using TeeChart version 3.5.3187.15585 and C#.NET with Visual Studio 2015


Is there anything I can do to make this work? Perhaps I'm missing a step somewhere.
Or is there a workaround?

Thanks

Dave.

Re: BackgroundImage not saving on Export

Posted: Tue Nov 27, 2018 8:58 am
by Christopher
Hello Dave,

the BackgroundImage property is a .NET Framework property belonging to the Control class and as such will not be serialized - there is similar TeeChart property, the Panel.Brush.Image property, the use of which you will find in the attached project.
BackgroundImage.zip
(117.54 KiB) Downloaded 914 times

Re: BackgroundImage not saving on Export

Posted: Tue Nov 27, 2018 7:41 pm
by 13050364
Sensational! Thanks Chris