Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)

Post by bairog » Wed Apr 24, 2019 2:59 pm

Hello.
I'm using Visual Studio 2019 Pro (16.0.2) and .NET Core 3 SDK Preview 4.
I've create application from a Windows Forms App (.NET Core) template and added Steema.TeeChart.NET nuget package to my project (4.2019.3.15).
After that I've created Steema.TeeChart.Chart variable (because there is no Steema.TeeChart.TChart class in assembly I've referenced).
But it has less properties than Steema.TeeChart.TChart that I was using before for .NET 4.0 (for example Dock property is missing).
Moreover I cannot simply use this.Controls.Add(this.tChart1):

Code: Select all

cannot convert from 'Steema.TeeChart.Chart' to 'System.Windows.Forms.Control'
So is it possible to use TeeChart in WinForms application (.NET Core 3 preview 4)? If not - when are you planning begin?
According to latest news from Microsoft upcoming .NET Framework 4.8 will have less features than .NET Core 3 (it will support .NET Standart 2.1) - so we are looking for retargeting our new Windows Forms projects to the most modern platform.
Thank you.
Last edited by bairog on Mon Aug 12, 2019 5:11 am, edited 4 times in total.

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by Christopher » Fri Apr 26, 2019 3:37 pm

Hello,

We are preparing the existing TeeChart version for tests in the Net Core 3 Framework. We expect to be able to make a test version available soon. In the meantime, the current TeeChart NetStandard version can be used as a non-forms control - please find following an example of the use of TeeChart.NET Standard in an ASP.NET Core app:

http://www.teechart.net/files/teechartn ... tCore2.zip
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

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by bairog » Sat Apr 27, 2019 7:06 am

Christopher wrote:
Fri Apr 26, 2019 3:37 pm
In the meantime, the current TeeChart NetStandard version can be used as a non-forms control - please find following an example of the use of TeeChart.NET Standard in an ASP.NET Core app:

http://www.teechart.net/files/teechartn ... tCore2.zip
Unfortunatelly ASP.NET Core app is not an option for us. Our software is fully desktop.
So we will wait for an updated version.

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by bairog » Tue May 21, 2019 7:37 am

Any progress for now? Is there a new version to test?

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by Christopher » Thu May 23, 2019 10:28 am

bairog wrote:
Tue May 21, 2019 7:37 am
Any progress for now? Is there a new version to test?
Not at the moment, no. As far as we understand from this blog post here, the roadmap for .NET Core/.NET looks like this:
dotnet_schedule.png
dotnet_schedule.png (84.52 KiB) Viewed 35312 times
We here at Steema Software are committed to complying with this timeline, and will have versions of TeeChart.NET ready for the Release Candidate of .NET Core 3.0 due in July 2019. We will be in touch with you personally as soon as we have a version of TeeChart.NET for .NET Core 3.0 which we feel is ready for client testing.
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

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by Marc » Tue May 28, 2019 8:30 am

Hello,

Just as a footnote to Chris' official timeline. We are optimistic that we can have a version available for use, via Nuget, before mid June.

Regards,
Marc Meumann
Steema Support

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by Christopher » Tue Jun 04, 2019 9:16 am

Hello!
Christopher wrote:
Thu May 23, 2019 10:28 am
We will be in touch with you personally as soon as we have a version of TeeChart.NET for .NET Core 3.0 which we feel is ready for client testing.
We've created a test NuGet package for .NET Core 3.0 preview 5 Windows Forms which you can download from here. You will be able to install this NuGet package into your version of Visual Studio by copying it to a local NuGet package source:
devenv_g3d9ikecoA.png
devenv_g3d9ikecoA.png (26.05 KiB) Viewed 35195 times
Do please let us know how your tests go.
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

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by bairog » Fri Jun 07, 2019 11:23 am

I've performed a quick test - everything is going fine for now..
It's really hard to work without WinForms designer in .NET Core - expecting VS team to add it soon. After that I'll be able to peform full testing.
Thank you for your job.

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview 4)

Post by Christopher » Fri Jun 07, 2019 1:08 pm

bairog wrote:
Fri Jun 07, 2019 11:23 am
Thank you for your job.
You're very welcome. Just to let you know that we've added six new NuGet packages here:
https://www.nuget.org/profiles/steema

These are TeeChart for .NET Core 3.0 Pro/Business for .Net Core 3.0, .Net Core 3.0 Windows Forms and .Net Core 3.0 WPF.
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

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by bairog » Thu Jul 25, 2019 6:52 am

Hello again.
Latest Visual Strudio 2019 still not have WinForms designer in .NET Core :(, so I've performed a deeper test:
  1. Downloaded TeeChart.Winform (https://www.nuget.org/packages/Steema.T ... e.WinForm/)
  2. Installed .NET Core preview 6 (because .NET Core preview 7 only works with Visual Studio 2019 16.3 preview 1)
  3. Ported one of my current production WinForm app to .NET Core 3 (only application code, all dependency libraries (except for TeeChart) are still on .NET Framework 4.0) with lastest Visual Studio 2019 16.2
My existing licenses.licx (Build Action: Embedded resource) was:

Code: Select all

Steema.TeeChart.TChart, TeeChart, Version=4.2018.12.17, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
and I've changed it to:

Code: Select all

Steema.TeeChart.TChart, TeeChart.WinForm, Version=4.2019.6.4, Culture=neutral, PublicKeyToken=ab44c04939770ee2
But I get a compilation error:
LC0000: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (HRESULT: 0x80131058)
If I remove licenses.licx from my .NET Core app - all charts have evaluation watermarks.

What's wrong with my code?

P.S. Except for this - everything is working fine for now.

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by Christopher » Thu Aug 08, 2019 1:54 pm

bairog wrote:
Thu Jul 25, 2019 6:52 am
If I remove licenses.licx from my .NET Core app - all charts have evaluation watermarks.

What's wrong with my code?

P.S. Except for this - everything is working fine for now.
The licenses.licx is unnecessary for TeeChart.NET Core as this file is only relevant to the Windows Forms designer and the Web Forms designer - in TeeChart.NET Core you can delete it.

Are you using your TeeChart.licenses file? It is this file that will remove the watermark.
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

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by bairog » Fri Aug 09, 2019 5:17 am

Christopher wrote:
Thu Aug 08, 2019 1:54 pm
The licenses.licx is unnecessary for TeeChart.NET Core as this file is only relevant to the Windows Forms designer and the Web Forms designer - in TeeChart.NET Core you can delete it.
In near future, when WinForms designer will be added to Visual Studio 2019, whether it will be necessary to add this file?
Christopher wrote:
Thu Aug 08, 2019 1:54 pm
Are you using your TeeChart.licenses file? It is this file that will remove the watermark.
Yes (Build Action: Embedded resource). It is exactly the same file that I use in project targeting .NET Framework 4.0. Do I need to generate different one somehow?


P. S. Just created simple WinForms app (.NET Framework) and added TeeChart.licenses (Build Action: Embedded resource) - no watermark.

Created WinForms app (.NET Core), added all files from previous app (changed namespace of course), changed TeeChart.dll to TeeChart.WinForm.dll and added the same TeeChart.licenses (Build Action: Embedded resource) - watermark is present.

Looks like I'm doing something wrong.. :)

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

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by Christopher » Fri Aug 09, 2019 7:30 am

bairog wrote:
Fri Aug 09, 2019 5:17 am
In near future, when WinForms designer will be added to Visual Studio 2019, whether it will be necessary to add this file?
I don't know. If the WinForm .NETCore designer has identical functionality to the WinForm .NET designer then this file may be necessary. We will have to wait to see.
bairog wrote:
Fri Aug 09, 2019 5:17 am
Looks like I'm doing something wrong.. :)
Try putting your license into the following page:
https://www.steema.com/linkIn/License_information_check

This is what I get with a dummy license:
Screenshot from 2019-08-09 09-25-08.png
Screenshot from 2019-08-09 09-25-08.png (32.92 KiB) Viewed 34332 times
This license will not work with Steema.TeeChart.NETCore.WinForm 4.2019.6.4 (note the license is valid by two days) because the 'Assembly name' of 'teechart.winform' is not listed. If your license does not have 'teechart.winform' listed it won't work either. Obtaining a new TeeChart.licenses file with 'teechart.winform' listed is easy to do by requesting one from sales@steema.com with your license details.
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

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by bairog » Fri Aug 09, 2019 7:44 am

Christopher wrote:
Fri Aug 09, 2019 7:30 am
If your license does not have 'teechart.winform' listed it won't work either. Obtaining a new TeeChart.licenses file with 'teechart.winform' listed is easy to do by requesting one from sales@steema.com with your license details.
'teechart.winform' is not listed. I will contact sales@steema.com, thank you.

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

Post by Marc » Fri Aug 09, 2019 2:42 pm

Hello,

Please note. We are resending the license file that we sent to you earlier as previous one wasn't correctly prepared for teechart.winform support. Now modded.

Sorry for the inconvenience.

Regards,
Marc
Steema Support

Post Reply