Page 1 of 1

TeeChart MAUI : Can't export charts? Missing API

Posted: Fri Feb 23, 2024 4:23 pm
by 30297515
Environment:
PC: Windows11 Operating System, Visual Studio 2022
Updated all NU get Packages in the solution to the latest version as of 02/23/2024. The latest release(6.2024.2.19)


Using your Maui demo solution. I am trying to export a chart.

It appears the Maui version does not support exporting charts. I am missing something? If I am correct when might this feature be available?

Code :
tChart1.Export.Image.JPEG.Save("Chart");

Error CS1061 'TChart' does not contain a definition for 'Export' and no accessible extension method 'Export' accepting a first argument of type 'TChart' could be found(are you missing a using directive or an assembly reference?) AppCoreMaui(net8.0), AppCoreMaui(net8.0-android), AppCoreMaui(net8.0-ios), AppCoreMaui(net8.0-maccatalyst), AppCoreMaui(net8.0-windows10.0.19041.0)

Re: TeeChart MAUI : Can't export charts? Missing API

Posted: Thu Feb 29, 2024 6:34 am
by Pep
Hello,
let me check what is the problem, prepare an example and send it to you.
Thanks

Re: TeeChart MAUI : Can't export charts? Missing API

Posted: Sun Mar 03, 2024 4:27 pm
by 30297515
I have added a few lines to your BarChart.xaml.cs file demonstrating the compile time error.

Re: TeeChart MAUI : Can't export charts? Missing API

Posted: Sun Mar 10, 2024 12:47 pm
by 30297515
What happening? Have you verified this issue? Is there any update?

Re: TeeChart MAUI : Can't export charts? Missing API

Posted: Mon Mar 11, 2024 10:37 am
by Pep
Hello,
yes, we verified, the Export and Import funcionality is not available in the TeeChart NET MAUI version at the moment.
I've added this on our bug/wish list here.
We're working adding image export funcionality for next maintenance version.
In meantime, it might be the possibility to generate image directly from component (I mean by using Micrisoft MAUI code like it was possible by getting Context to image) but have not tried.