Page 1 of 2

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

Posted: Wed Apr 24, 2019 2:59 pm
by 15685014
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.

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

Posted: Fri Apr 26, 2019 3:37 pm
by Christopher
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

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

Posted: Sat Apr 27, 2019 7:06 am
by 15685014
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.

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

Posted: Tue May 21, 2019 7:37 am
by 15685014
Any progress for now? Is there a new version to test?

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

Posted: Thu May 23, 2019 10:28 am
by Christopher
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 35880 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.

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

Posted: Tue May 28, 2019 8:30 am
by Marc
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

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

Posted: Tue Jun 04, 2019 9:16 am
by Christopher
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 35763 times
Do please let us know how your tests go.

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

Posted: Fri Jun 07, 2019 11:23 am
by 15685014
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.

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

Posted: Fri Jun 07, 2019 1:08 pm
by Christopher
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.

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

Posted: Thu Jul 25, 2019 6:52 am
by 15685014
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.

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

Posted: Thu Aug 08, 2019 1:54 pm
by Christopher
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.

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

Posted: Fri Aug 09, 2019 5:17 am
by 15685014
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.. :)

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

Posted: Fri Aug 09, 2019 7:30 am
by Christopher
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 34900 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.

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

Posted: Fri Aug 09, 2019 7:44 am
by 15685014
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.

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

Posted: Fri Aug 09, 2019 2:42 pm
by Marc
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