TeeChart MAUI : Can't export charts? Missing API

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
McSaverCharting
Newbie
Newbie
Posts: 15
Joined: Mon Jan 29, 2024 12:00 am

TeeChart MAUI : Can't export charts? Missing API

Post by McSaverCharting » Fri Feb 23, 2024 4:23 pm

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)

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Thu Feb 29, 2024 6:34 am

Hello,
let me check what is the problem, prepare an example and send it to you.
Thanks

McSaverCharting
Newbie
Newbie
Posts: 15
Joined: Mon Jan 29, 2024 12:00 am

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

Post by McSaverCharting » Sun Mar 03, 2024 4:27 pm

I have added a few lines to your BarChart.xaml.cs file demonstrating the compile time error.
Attachments
BarChart.xaml.cs.zip
(1.04 KiB) Downloaded 3485 times

McSaverCharting
Newbie
Newbie
Posts: 15
Joined: Mon Jan 29, 2024 12:00 am

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

Post by McSaverCharting » Sun Mar 10, 2024 12:47 pm

What happening? Have you verified this issue? Is there any update?

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Mon Mar 11, 2024 10:37 am

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.

McSaverCharting
Newbie
Newbie
Posts: 15
Joined: Mon Jan 29, 2024 12:00 am

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

Post by McSaverCharting » Thu Aug 22, 2024 1:11 am

What is happening on this issue?

I reported it six(6) months ago!

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Mon Aug 26, 2024 5:35 am

I'm affraid to say that this feature still not impemented. I'm taking note in order to change as urgent feature.
In meantime, there's a workaround on this tha should work without problem.
It's to generate a screenshot or image from device context. Here two examples of use:
link 1
link 2

Best regards!

Post Reply