Corprio.AspNetCore.XtraReportSite 2.0.24.33

dotnet add package Corprio.AspNetCore.XtraReportSite --version 2.0.24.33
NuGet\Install-Package Corprio.AspNetCore.XtraReportSite -Version 2.0.24.33
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Corprio.AspNetCore.XtraReportSite" Version="2.0.24.33" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Corprio.AspNetCore.XtraReportSite --version 2.0.24.33
#r "nuget: Corprio.AspNetCore.XtraReportSite, 2.0.24.33"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Corprio.AspNetCore.XtraReportSite as a Cake Addin
#addin nuget:?package=Corprio.AspNetCore.XtraReportSite&version=2.0.24.33

// Install Corprio.AspNetCore.XtraReportSite as a Cake Tool
#tool nuget:?package=Corprio.AspNetCore.XtraReportSite&version=2.0.24.33

Corprio.AspNetCore.XtraReportSite

What is Corprio.AspNetCore.XtraReportSite for?

The Corprio.AspNetCore.XtraReportSite is the base library for develpers to build a web applicaiton working with Corprio using ASP.NET Core and need to execute reports in the web application. If your application does not need to execute reports, then you can use Corprio.AspNetCore.Site instead.

Technology

The application is developed using ASP.NET Core 8, DevExtreme and XtraReports.

To start

Follow the steps below to start building your web applicaiton with Corprio.

Prepare the development environment

Download and install the latest version of Visual Studio from Microsoft. You will need to select components for building ASP.NET Core applications.

Clone Corprio.Internal solution

Your web application needs to work the Corprio API. Instead of directly calling the online API, you can clone the Corprio.Internal repository onto your development machine so that you can have the Corprio API server running in your development machine.

Start new web application

  1. Launch Visual Studio
  2. Create a new project
  3. Select the ASP.NET Core Web App (Model-View-Controller) template using C#
  4. Right click on the project and select Manage NuGet Packages
  5. Search for Corprio.AspNetCore.XtraReportSite and install the package
  6. Create a class to get data for your reports running in this application. For example
/// <summary>
/// Service for getting data for reports
/// </summary>
public class ReportDataService : BaseReportDataService
{
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="httpContextAccessor">HttpContextAccessor for getting organization ID from HttpContext</param>
        /// <param name="corprio">Corprio client for getting data from server</param>
        public ReportDataService(IHttpContextAccessor httpContextAccessor, APIClient corprio, IHttpClientFactory httpClientFactory) : base(httpContextAccessor, corprio, httpClientFactory)
        {
        }

        public override IEnumerable<Type> GetAvailableTypes(string context)
        {
            return new Type[] {
                //put the data types of your report data here, e.g. MySalesReportData
                };
        }

        public override System.Collections.IEnumerable GetReportData(Type dataType, Guid organizationID, Dictionary<string, object> parameters)
        {
            //add code to return data for each of your report data type 
            throw new NotSupportedException($"DataType {dataType} is not supported");
        }

        public override IEnumerable<Corprio.DataModel.Report.Parameter> GetParametersOfDataType(Type reportDataType, string[] supportedLanguages)
        {
            //add code to return an array of Parameter for prompting users before executing the report
            return Array.Empty<Corprio.DataModel.Report.Parameter>();
        }
}
  1. Edit the Startup.cs and modify ConfigureServices as
public void ConfigureServices(IServiceCollection services)
{
	services.AddCommonAppServices(Configuration);
	services.AddXtraReports<ReportDataService>();
}
  1. Edit appsettings.Development.json to include the following sections
  "CorprioApiSetting": {
    "AuthServerUrl": "https://localhost:44334", //replace with the port of your local AuthServer project
    "ApiUrl": "https://localhost:44394", //replace with the port of your local Corprio API project
    "ApiVersion": "1.0"
  },
  "CorprioClientCredential": {
    "ClientID": "your app ID", //replace with the ID of your application which will be used to register your application in Corprio Portal
    "ClientSecret": "xxxxxxxxxxxxxxxxxxx" //replace with the secret of your application
  },
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.24.33 68 6/24/2024
2.0.24.32 72 6/3/2024
2.0.24.31 75 5/27/2024
2.0.24.28 59 5/18/2024
2.0.24.27 57 5/17/2024
2.0.24.24 52 5/14/2024
2.0.24.7 86 5/9/2024
2.0.24.6 90 5/9/2024
2.0.24.1 64 5/3/2024
2.0.24 58 5/2/2024
2.0.23.1 84 4/26/2024
2.0.23 76 4/26/2024
2.0.22.5 81 4/26/2024
2.0.22.3 82 4/26/2024
2.0.22.2 84 4/22/2024
2.0.22.1 86 4/19/2024
2.0.22 79 4/19/2024
2.0.21 95 4/16/2024
2.0.20.2 94 4/15/2024
2.0.20.1 93 4/14/2024
2.0.20 79 4/14/2024
2.0.19.2 89 4/12/2024
2.0.19 81 4/11/2024
2.0.18 106 4/5/2024
2.0.17 98 3/28/2024
2.0.16.4 78 3/27/2024
2.0.16.3 71 3/27/2024
2.0.16 84 3/27/2024
2.0.15.11 86 3/27/2024
2.0.15.10 87 3/27/2024
2.0.15.4 88 3/25/2024
2.0.15.3 94 3/22/2024
2.0.15 93 3/20/2024
2.0.14.18 80 3/15/2024
2.0.14.17 87 3/11/2024
2.0.14.13 71 3/11/2024
2.0.14.10 85 3/7/2024
2.0.14.8 72 3/6/2024
2.0.14.6 93 3/4/2024
2.0.14.4 107 3/1/2024
2.0.14.3 87 3/1/2024
2.0.14.2 83 3/1/2024
2.0.14 97 3/1/2024
2.0.13.8 80 3/1/2024
2.0.13.7 91 2/27/2024
2.0.13.6 91 2/27/2024
2.0.13 90 2/26/2024
2.0.12.5 89 2/22/2024
2.0.12.4 84 2/22/2024
2.0.12.2 90 2/22/2024
2.0.12 90 2/21/2024
2.0.11.8 76 2/19/2024
2.0.11 86 2/18/2024
2.0.10.2 84 2/16/2024
2.0.10.1 78 2/16/2024
2.0.9 79 2/16/2024
2.0.8 81 2/15/2024
2.0.7 114 1/30/2024
2.0.6.1 74 1/30/2024
2.0.6 76 1/30/2024
2.0.5 78 1/30/2024
2.0.1 97 1/19/2024
1.2.0 87 1/18/2024
1.1.60.1 86 1/19/2024
1.1.60 91 1/17/2024
1.1.59.14 87 1/17/2024
1.1.59.6 89 1/15/2024
1.1.59.3 96 1/12/2024
1.1.59 82 1/12/2024
1.1.58 126 1/4/2024
1.1.57 121 12/20/2023
1.1.56 125 12/18/2023
1.1.55 109 12/15/2023
1.1.54.5 122 12/14/2023
1.1.54.3 104 12/12/2023
1.1.54 107 12/12/2023
1.1.53.16 134 12/5/2023
1.1.53.11 148 11/29/2023
1.1.53.6 134 11/25/2023
1.1.53 130 11/17/2023
1.1.52.22 114 11/17/2023
1.1.52.11 99 11/14/2023
1.1.52.9 98 11/14/2023
1.1.52.5 116 11/14/2023
1.1.52.3 110 11/10/2023
1.1.52 115 11/6/2023
1.1.51 127 11/2/2023
1.1.50.9 116 10/30/2023
1.1.50.8 123 10/27/2023
1.1.50.7 113 10/27/2023
1.1.50.6 98 10/27/2023
1.1.50 121 10/25/2023
1.1.49 148 10/19/2023
1.1.48.3 119 10/19/2023
1.1.48 132 10/18/2023
1.1.47.6 133 10/18/2023
1.1.47.5 137 10/17/2023
1.1.47.2 125 10/17/2023
1.1.47.1 125 10/17/2023
1.1.47 129 10/17/2023
1.1.45.6 151 10/16/2023
1.1.45 143 10/13/2023
1.1.44.11 129 10/12/2023
1.1.44.10 123 10/12/2023
1.1.44 136 10/11/2023
1.1.43.1 160 10/11/2023
1.1.43 154 10/6/2023
1.1.42.12 130 10/6/2023
1.1.42.11 152 9/28/2023
1.1.42.10 155 9/21/2023
1.1.42.2 124 9/19/2023
1.1.42.1 127 9/19/2023
1.1.42 123 9/17/2023
1.1.41.1 123 9/15/2023
1.1.41 156 9/13/2023
1.1.40 155 9/7/2023
1.1.39.1 176 8/25/2023
1.1.39 189 8/18/2023
1.1.38 179 8/11/2023
1.1.37.1 190 7/26/2023
1.1.37 197 7/22/2023
1.1.36.1 184 7/20/2023
1.1.36 173 7/19/2023
1.1.35 184 7/19/2023
1.1.34.6 210 7/7/2023
1.1.34.5 183 7/7/2023
1.1.34.4 182 7/4/2023
1.1.34 209 7/3/2023
1.1.33.45 218 7/3/2023
1.1.33.42 235 6/12/2023
1.1.33.41 164 6/5/2023
1.1.33.26 265 4/11/2023
1.1.33.25 217 4/11/2023
1.1.33.20 243 4/4/2023
1.1.33.19 240 4/3/2023
1.1.33.15 213 3/31/2023
1.1.33.14 204 3/31/2023
1.1.33.11 257 3/29/2023