Corprio.AspNetCore.XtraReportSite
2.0.25.2
See the version list below for details.
dotnet add package Corprio.AspNetCore.XtraReportSite --version 2.0.25.2
NuGet\Install-Package Corprio.AspNetCore.XtraReportSite -Version 2.0.25.2
<PackageReference Include="Corprio.AspNetCore.XtraReportSite" Version="2.0.25.2" />
paket add Corprio.AspNetCore.XtraReportSite --version 2.0.25.2
#r "nuget: Corprio.AspNetCore.XtraReportSite, 2.0.25.2"
// Install Corprio.AspNetCore.XtraReportSite as a Cake Addin #addin nuget:?package=Corprio.AspNetCore.XtraReportSite&version=2.0.25.2 // Install Corprio.AspNetCore.XtraReportSite as a Cake Tool #tool nuget:?package=Corprio.AspNetCore.XtraReportSite&version=2.0.25.2
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
- Launch Visual Studio
- Create a new project
- Select the ASP.NET Core Web App (Model-View-Controller) template using C#
- Right click on the project and select Manage NuGet Packages
- Search for Corprio.AspNetCore.XtraReportSite and install the package
- 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>();
}
}
- Edit the Startup.cs and modify ConfigureServices as
public void ConfigureServices(IServiceCollection services)
{
services.AddCommonAppServices(Configuration);
services.AddXtraReports<ReportDataService>();
}
- 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 | Versions 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. |
-
net8.0
- Corprio.AspNetCore.Site (>= 2.0.25.2)
- DevExpress.AspNetCore.Reporting (>= 23.2.5)
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.30 | 84 | 11/14/2024 |
2.0.29.55 | 142 | 9/23/2024 |
2.0.29.54 | 99 | 9/19/2024 |
2.0.29.38 | 89 | 9/9/2024 |
2.0.29 | 97 | 8/6/2024 |
2.0.28.1 | 65 | 8/5/2024 |
2.0.28 | 77 | 8/1/2024 |
2.0.27 | 63 | 7/31/2024 |
2.0.26.1 | 81 | 7/26/2024 |
2.0.26 | 83 | 7/26/2024 |
2.0.25.4 | 104 | 7/18/2024 |
2.0.25.3 | 96 | 7/18/2024 |
2.0.25.2 | 82 | 7/17/2024 |
2.0.25.1 | 80 | 7/17/2024 |
2.0.25 | 91 | 7/16/2024 |
2.0.24.33 | 125 | 6/24/2024 |
2.0.24.32 | 107 | 6/3/2024 |
2.0.24.31 | 105 | 5/27/2024 |
2.0.24.28 | 96 | 5/18/2024 |
2.0.24.27 | 85 | 5/17/2024 |
2.0.24.24 | 78 | 5/14/2024 |
2.0.24.7 | 117 | 5/9/2024 |
2.0.24.6 | 121 | 5/9/2024 |
2.0.24.1 | 87 | 5/3/2024 |
2.0.24 | 88 | 5/2/2024 |
2.0.23.1 | 112 | 4/26/2024 |
2.0.23 | 91 | 4/26/2024 |
2.0.22.5 | 103 | 4/26/2024 |
2.0.22.3 | 90 | 4/26/2024 |
2.0.22.2 | 112 | 4/22/2024 |
2.0.22.1 | 108 | 4/19/2024 |
2.0.22 | 107 | 4/19/2024 |
2.0.21 | 125 | 4/16/2024 |
2.0.20.2 | 116 | 4/15/2024 |
2.0.20.1 | 125 | 4/14/2024 |
2.0.20 | 111 | 4/14/2024 |
2.0.19.2 | 118 | 4/12/2024 |
2.0.19 | 112 | 4/11/2024 |
2.0.18 | 137 | 4/5/2024 |
2.0.17 | 122 | 3/28/2024 |
2.0.16.4 | 115 | 3/27/2024 |
2.0.16.3 | 97 | 3/27/2024 |
2.0.16 | 112 | 3/27/2024 |
2.0.15.11 | 112 | 3/27/2024 |
2.0.15.10 | 110 | 3/27/2024 |
2.0.15.4 | 104 | 3/25/2024 |
2.0.15.3 | 120 | 3/22/2024 |
2.0.15 | 123 | 3/20/2024 |
2.0.14.18 | 110 | 3/15/2024 |
2.0.14.17 | 124 | 3/11/2024 |
2.0.14.13 | 103 | 3/11/2024 |
2.0.14.10 | 119 | 3/7/2024 |
2.0.14.8 | 99 | 3/6/2024 |
2.0.14.6 | 131 | 3/4/2024 |
2.0.14.4 | 137 | 3/1/2024 |
2.0.14.3 | 122 | 3/1/2024 |
2.0.14.2 | 117 | 3/1/2024 |
2.0.14 | 132 | 3/1/2024 |
2.0.13.8 | 118 | 3/1/2024 |
2.0.13.7 | 122 | 2/27/2024 |
2.0.13.6 | 119 | 2/27/2024 |
2.0.13 | 123 | 2/26/2024 |
2.0.12.5 | 122 | 2/22/2024 |
2.0.12.4 | 113 | 2/22/2024 |
2.0.12.2 | 116 | 2/22/2024 |
2.0.12 | 127 | 2/21/2024 |
2.0.11.8 | 106 | 2/19/2024 |
2.0.11 | 122 | 2/18/2024 |
2.0.10.2 | 109 | 2/16/2024 |
2.0.10.1 | 99 | 2/16/2024 |
2.0.9 | 112 | 2/16/2024 |
2.0.8 | 118 | 2/15/2024 |
2.0.7 | 144 | 1/30/2024 |
2.0.6.1 | 100 | 1/30/2024 |
2.0.6 | 106 | 1/30/2024 |
2.0.5 | 104 | 1/30/2024 |
2.0.1 | 127 | 1/19/2024 |
1.2.0 | 122 | 1/18/2024 |
1.1.60.1 | 114 | 1/19/2024 |
1.1.60 | 118 | 1/17/2024 |
1.1.59.14 | 114 | 1/17/2024 |
1.1.59.6 | 123 | 1/15/2024 |
1.1.59.3 | 131 | 1/12/2024 |
1.1.59 | 118 | 1/12/2024 |
1.1.58 | 156 | 1/4/2024 |
1.1.57 | 150 | 12/20/2023 |
1.1.56 | 152 | 12/18/2023 |
1.1.55 | 134 | 12/15/2023 |
1.1.54.5 | 147 | 12/14/2023 |
1.1.54.3 | 131 | 12/12/2023 |
1.1.54 | 137 | 12/12/2023 |
1.1.53.16 | 163 | 12/5/2023 |
1.1.53.11 | 180 | 11/29/2023 |
1.1.53.6 | 158 | 11/25/2023 |
1.1.53 | 158 | 11/17/2023 |
1.1.52.22 | 135 | 11/17/2023 |
1.1.52.11 | 128 | 11/14/2023 |
1.1.52.9 | 124 | 11/14/2023 |
1.1.52.5 | 138 | 11/14/2023 |
1.1.52.3 | 138 | 11/10/2023 |
1.1.52 | 144 | 11/6/2023 |
1.1.51 | 137 | 11/2/2023 |
1.1.50.9 | 126 | 10/30/2023 |
1.1.50.8 | 134 | 10/27/2023 |
1.1.50.7 | 144 | 10/27/2023 |
1.1.50.6 | 131 | 10/27/2023 |
1.1.50 | 152 | 10/25/2023 |
1.1.49 | 160 | 10/19/2023 |
1.1.48.3 | 149 | 10/19/2023 |
1.1.48 | 163 | 10/18/2023 |
1.1.47.6 | 161 | 10/18/2023 |
1.1.47.5 | 168 | 10/17/2023 |
1.1.47.2 | 135 | 10/17/2023 |
1.1.47.1 | 159 | 10/17/2023 |
1.1.47 | 160 | 10/17/2023 |
1.1.45.6 | 181 | 10/16/2023 |
1.1.45 | 166 | 10/13/2023 |
1.1.44.11 | 155 | 10/12/2023 |
1.1.44.10 | 148 | 10/12/2023 |
1.1.44 | 174 | 10/11/2023 |
1.1.43.1 | 194 | 10/11/2023 |
1.1.43 | 182 | 10/6/2023 |
1.1.42.12 | 161 | 10/6/2023 |
1.1.42.11 | 182 | 9/28/2023 |
1.1.42.10 | 189 | 9/21/2023 |
1.1.42.2 | 153 | 9/19/2023 |
1.1.42.1 | 150 | 9/19/2023 |
1.1.42 | 158 | 9/17/2023 |
1.1.41.1 | 149 | 9/15/2023 |
1.1.41 | 168 | 9/13/2023 |
1.1.40 | 190 | 9/7/2023 |
1.1.39.1 | 198 | 8/25/2023 |
1.1.39 | 216 | 8/18/2023 |
1.1.38 | 187 | 8/11/2023 |
1.1.37.1 | 217 | 7/26/2023 |
1.1.37 | 213 | 7/22/2023 |
1.1.36.1 | 208 | 7/20/2023 |
1.1.36 | 194 | 7/19/2023 |
1.1.35 | 206 | 7/19/2023 |
1.1.34.6 | 237 | 7/7/2023 |
1.1.34.5 | 207 | 7/7/2023 |
1.1.34.4 | 208 | 7/4/2023 |
1.1.34 | 237 | 7/3/2023 |
1.1.33.45 | 241 | 7/3/2023 |
1.1.33.42 | 258 | 6/12/2023 |
1.1.33.41 | 190 | 6/5/2023 |
1.1.33.26 | 293 | 4/11/2023 |
1.1.33.25 | 251 | 4/11/2023 |
1.1.33.20 | 276 | 4/4/2023 |
1.1.33.19 | 251 | 4/3/2023 |
1.1.33.15 | 240 | 3/31/2023 |
1.1.33.14 | 230 | 3/31/2023 |
1.1.33.11 | 287 | 3/29/2023 |