BackgroundImage not saving on Export

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 137
Joined: Mon Sep 22, 2008 12:00 am

BackgroundImage not saving on Export

Post by Dave » Mon Nov 26, 2018 3:21 pm

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.

Christopher
Guru
Posts: 1192
Joined: Fri Nov 15, 2002 12:00 am

Re: BackgroundImage not saving on Export

Post by Christopher » Tue Nov 27, 2018 8:58 am

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 102 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Dave
Advanced
Posts: 137
Joined: Mon Sep 22, 2008 12:00 am

Re: BackgroundImage not saving on Export

Post by Dave » Tue Nov 27, 2018 7:41 pm

Sensational! Thanks Chris

Post Reply