Page 1 of 2

Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Sat Feb 24, 2024 8:29 pm
by compuaid
I am trying to integrate the web viewer and web designer inside an AspNetControl in WiseJ.Net 3.5. The target frameworks are automatically set up by the Wisej template as 4.7 and .Net 8.0. When I try to use the StiWebViewer reference in my code I get a message in Visual Studio that the StiWebViewer is not available in .Net 8.0.

This is the code I'm attempting to use to define the StiWiseJWebViwer class:

Code: Select all

using Stimulsoft.Report;
using Stimulsoft.Report.Web;
using System;
using System.ComponentModel;
using Wisej.Web;
using Wisej.Web.Ext.AspNetControl;

namespace Using_the_Viewer_in_Wisej_NET
{
    [ToolboxItem(true)]
    public class StiWisejWebViewer : AspNetWrapper<StiWebViewer> // ************* The first error occurs here *************
    {
        #region Properties
        /// <summary>
        /// Returns the Stimulsoft designer instance.
        /// </summary>
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public StiWebViewer Viewer // ******** The second error occurs here **********
        {
            get { return this.WrappedControl; }
        }

        public StiReport Report
        {
            get
            {
                return this.Viewer.Report;
            }
            set
            {
                this.Viewer.Report = value;
            }
        }
        #endregion

        #region Implementations
        protected override void OnPreInit(EventArgs e)
        {
            // set viewer options
            if (this.Viewer != null)
            {
                this.Viewer.Localization = Application.MapPath("Localization\\en.xml");
                this.Viewer.Theme = StiViewerTheme.Office2022BlackOrange;
                this.Viewer.FullScreenMode = true;

                // attach the handled events to fire the event on the wrapper.

                if (this.GetReport != null)
                    this.Viewer.GetReport += this.GetReport;

                if (this.PrintReport != null)
                    this.Viewer.PrintReport += this.PrintReport;

                if (this.ExportReport != null)
                    this.Viewer.ExportReport += this.ExportReport;

                if (this.Interaction != null)
                    this.Viewer.Interaction += this.Interaction;
            }

            base.OnPreInit(e);
        }
        #endregion

        #region Events
        /// <summary>
        /// LoadReport event.
        /// </summary>
        public event StiReportDataEventHandler GetReport;

        /// <summary>
        /// CreateReport event.
        /// </summary>
        public event StiPrintReportEventHandler PrintReport;

        /// <summary>
        /// PreviewReport event.
        /// </summary>
        public event StiExportReportEventHandler ExportReport;

        /// <summary>
        /// SaveReport event.
        /// </summary>
        public event StiReportDataEventHandler Interaction;
        #endregion
    }
}

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Mon Feb 26, 2024 10:18 am
by Lech Kulikowski
Hello,

You should use the StiNetCoreViewer. The StiWebViewer is available only for the NET Framework.

Thank you.

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Fri Feb 28, 2025 5:00 am
by nickysuwandi
Lech Kulikowski wrote: Mon Feb 26, 2024 10:18 am Hello,

You should use the StiNetCoreViewer. The StiWebViewer is available only for the NET Framework.

Thank you.
Hi Lech

can you give some example how to implement Stimulsoft report using VS2022 and wisej 3.5 for . Net Core 8

i found some example from Stimulsoft.but the example create using old wisej.

Thanks for you help

Nicky

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Fri Feb 28, 2025 8:07 am
by Lech Kulikowski
Hello,

Please check the samples at the following link:
https://github.com/stimulsoft/Samples-R ... or-ASP.NET

Thank you.

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Tue Mar 11, 2025 7:42 am
by nickysuwandi
Thanks Lech for your respon

I had try that sample before i ask in this group.

That sample using old wisej. Its not working when convert to wisej 3.5 and VS 2022.

Thanks

Nicky
Lech Kulikowski wrote: Fri Feb 28, 2025 8:07 am Hello,

Please check the samples at the following link:
https://github.com/stimulsoft/Samples-R ... or-ASP.NET

Thank you.

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Wed Mar 12, 2025 9:15 am
by Lech Kulikowski
Hello,

We need some time to check and update samples.

Thank you.
#16941

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Fri Mar 14, 2025 2:29 am
by nickysuwandi
Thanks Lech for your time.
Lech Kulikowski wrote: Wed Mar 12, 2025 9:15 am Hello,

We need some time to check and update samples.

Thank you.
#16941

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Fri Mar 14, 2025 2:11 pm
by Lech Kulikowski
Hello,

You are welcome.

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Wed Mar 26, 2025 11:08 am
by Lech Kulikowski
Hello,

Please check the samples at the following link:
https://github.com/stimulsoft/Samples-R ... -Wisej.NET

Thank you.

Re: Using the Report Viewer with .Net Core 8 and WiseJ.Net

Posted: Mon Apr 07, 2025 6:56 am
by nickysuwandi
Lech Kulikowski wrote: Wed Mar 26, 2025 11:08 am Hello,

Please check the samples at the following link:
https://github.com/stimulsoft/Samples-R ... -Wisej.NET

Thank you.
Thanks Lech Kulikowski