Page 1 of 2

Call external function from a BLAZOR report

Posted: Wed Sep 27, 2023 9:58 pm
by dikan
How to call external functions in a BLAZOR report?

I have a function that I build in c# and I am using it in a WinForm report but now I have to use it for the same reports called from BLAZOR. Do I have to embed a function in a BLAZOR app or make it as a separate .DLL?

best regards,

dikan

Re: Call external function from a BLAZOR report

Posted: Sat Sep 30, 2023 11:29 am
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: Call external function from a BLAZOR report

Posted: Mon Oct 02, 2023 1:13 pm
by Max Shamanov
Hello,

Could you please send us an example of the project you are using to analyze?

Thank you.

Re: Call external function from a BLAZOR report

Posted: Tue Oct 03, 2023 6:44 am
by dikan
This example includes two of my problems with transitioning to a newer version of Stimulsoft. One is related to external function and the other one is related to Form (obsolete) in a new version which I suppose will gradually disappear as functionality and it is not working in a Blazor (I have to run this very same report in a Blazor environment).
Best regards,
dikan

Re: Call external function from a BLAZOR report

Posted: Wed Oct 04, 2023 9:55 am
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: Call external function from a BLAZOR report

Posted: Mon Oct 09, 2023 11:16 am
by Max Shamanov
Hello,
the other one is related to Form (obsolete) in a new version which I suppose will gradually disappear as functionality and it is not working in a Blazor
In the Blazor, you can use the Request From User variables or your own form.
I have a function that I build in c# and I am using it in a WinForm report but now I have to use it for the same reports called from BLAZOR. Do I have to embed a function in a BLAZOR app or make it as a separate .DLL?
To be used in Blazor the .dll must be built under NetCore and connected in the project reference.
You can also create and connect your own function in the report dictionary, please see the following links:
https://www.stimulsoft.com/en/documenta ... ctions.htm
https://github.com/stimulsoft/Samples-R ... 20Designer

Thank you.

Re: Call external function from a BLAZOR report

Posted: Fri Nov 17, 2023 1:32 pm
by dikan
Dear Sirs,

Your example was of great help. It works indeed in my case too, but it does not work during the designing process. So, how can I include my custom made function in designer during development?

Best regards,

Dikan

Re: Call external function from a BLAZOR report

Posted: Mon Nov 20, 2023 7:21 am
by Max Shamanov
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.

Re: Call external function from a BLAZOR report

Posted: Fri Nov 24, 2023 12:45 pm
by dikan
Well o.k. I will try to explain a little bit longer. In previous posts I asked to solve problems with the external (myself built) procedures and using them in Stimulsoft Blazor reports. As you could review all this thread I received your instruction to look at code on GitHub. This code was of great help because my reports now work with my external procedure but what is the problem? Simple, it only works from programs that include both my procedure and report viewer but I do not know how to include my procedure in designer and build new reports and edit existing reports in Stimulsoft designer.

That's all.

Regards,

dikan

Re: Call external function from a BLAZOR report

Posted: Mon Nov 27, 2023 2:56 pm
by Max Shamanov
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you