Variables with .NET CORE?

Stimulsoft Reports.NET discussion
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Variables with .NET CORE?

Post by ednt »

Hello,
since I migrated our application from .NET 4.8 to .NET CORE 3.1 we cant enter variables in both the Designer and the Viewer because the Variables Toolbar just not appears (see attachment 1).
I saw 1 error and 1 warning (see attachment 2) but if I try to change from "compilation mode" to "interpretation mode" two errors appearing (see attachment 3 + 4).

So my questions are:
- How can i make the variable panel work again under .NET CORE?
- Need I report.compile() to show variables? Because this method is just not supported in your .NET CORE version :(
- What is the difference between compilation and interpretation mode
- Any Idea how i can fix the errors?

I am using:
- Windows 10 (latest release)
- Visual Studio 2019 (latest release)
- .NET CORE 3.1 (C#) (latest release)
- Stimulsoft.Reports.Engine (latest release) as NuGet Package
- Stimulsoft.Reports.Net (latest release) as NuGet Package
- Stimulsoft.Dashboards.Win (latest release) as NuGet Package

Thank you
Attachments
compare.png
compare.png (51.14 KiB) Viewed 2819 times
errors.PNG
errors.PNG (9.72 KiB) Viewed 2819 times
Unbenannt.PNG
Unbenannt.PNG (17.84 KiB) Viewed 2819 times
Unbenannt2.PNG
Unbenannt2.PNG (17.36 KiB) Viewed 2819 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables with .NET CORE?

Post by Lech Kulikowski »

Hello,

- How can i make the variable panel work again under .NET CORE?
We have reproduced the problem, we will make a fix that will be available in the next release or earlier.

- Need I report.compile() to show? Because this method is just not supported in your .NET CORE version
We have plans to add Roslyn's support, but can not say exactly when it will be added.

- What is the difference between compilation and interpretation mode

When you design reports and dashboards, expressions can be processed in the Interpretation or Compilation mode.
In the Compilation mode, the CSharp compiler is used to calculate expressions. In this case, it is allowed to use events, various methods, and functions of the .NET Framework. However, the time taken to build a report or dashboard is slowing down, and it also requires more RAM.
In Interpretation mode, the Stimulsoft interpreter is used to calculate expressions. This speeds up the building of a report or dashboard and reduces the required amount of RAM. However, only built-in functions and methods can be used in a report or dashboard. The use of events and third-party scripts is not allowed.
https://www.stimulsoft.com/en/documenta ... n_mode.htm

- Any Idea how i can fix the?
In this case, wait for the next version or prerelease.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Variables with .NET CORE?

Post by ednt »

First, thank you for your reply!
Ok in this case I have to wait for your next release.
But I still wonder if I need report.Compile() to show the variables panel? Is the variables panel working under .NET CORE at all?

Thank you!
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables with .NET CORE?

Post by Lech Kulikowski »

Hello,

> But I still wonder if I need report.Compile() to show the variables panel?

No, is not needed. Compilation is not supported in the NET Core version.

> Is the variables panel working under .NET CORE at all?

That issue is fixed and will be available in the next release build.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Variables with .NET CORE?

Post by ednt »

Hey,

> That issue is fixed and will be available in the next release build.
Very cool, thank you!
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables with .NET CORE?

Post by Lech Kulikowski »

Hello,

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Variables with .NET CORE?

Post by ednt »

Hey again,
Are you already know when the next release will be available?

Thank you.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables with .NET CORE?

Post by Lech Kulikowski »

Hello,

In the next week.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Variables with .NET CORE?

Post by ednt »

Hello,

Still no update :(
You have any news about this?

Thank you.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables with .NET CORE?

Post by Lech Kulikowski »

Hello,

The new build in the testing, it will be available within several days.

Thank you.
Post Reply