AurorisNet.InteractiveReports.Client.FileDownload
1.0.3
dotnet add package AurorisNet.InteractiveReports.Client.FileDownload --version 1.0.3
NuGet\Install-Package AurorisNet.InteractiveReports.Client.FileDownload -Version 1.0.3
<PackageReference Include="AurorisNet.InteractiveReports.Client.FileDownload" Version="1.0.3" />
<PackageVersion Include="AurorisNet.InteractiveReports.Client.FileDownload" Version="1.0.3" />
<PackageReference Include="AurorisNet.InteractiveReports.Client.FileDownload" />
paket add AurorisNet.InteractiveReports.Client.FileDownload --version 1.0.3
#r "nuget: AurorisNet.InteractiveReports.Client.FileDownload, 1.0.3"
#:package AurorisNet.InteractiveReports.Client.FileDownload@1.0.3
#addin nuget:?package=AurorisNet.InteractiveReports.Client.FileDownload&version=1.0.3
#tool nuget:?package=AurorisNet.InteractiveReports.Client.FileDownload&version=1.0.3
AurorisNet.InteractiveReports.Client.FileDownload
CSV and HTML downloads for Interactive Reports. The package adds one route that runs a report document without paging and returns the result as a file, with the report's labels, format masks, filters and sort order.
The Download menu of the report UI uses this route.
Install
dotnet add package AurorisNet.InteractiveReports.Client.FileDownload
using InteractiveReport.AspNetCore;
using InteractiveReport.Client.FileDownload;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddInteractiveReports(builder.Configuration);
builder.Services.AddInteractiveReportFileDownload();
var app = builder.Build();
app.MapInteractiveReportFileDownload("/api/download");
app.Run();
In an application that already uses AurorisNet.InteractiveReports, keep its registration and add the two file-download lines. Call AddInteractiveReports once. The package also works without the browser package, for a service that only returns files.
Post a report document to POST /api/download/{name}/csv or POST /api/download/{name}/html. The route:
- authorizes the
Exportaction and requires the report'sdownloadfeature; - returns every matching row, up to the report's
maxRows; - sets the response header
X-IR-Truncatedtotruewhen a CSV file was cut at that cap; - refuses an HTML file that would be incomplete, with status
422.
The package targets .NET 8 and brings in AurorisNet.InteractiveReports.AspNetCore and AurorisNet.InteractiveReports.Core. The five packages are released together. Use one version for all of them. C# namespaces are InteractiveReport.*.
Documentation
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- AurorisNet.InteractiveReports.AspNetCore (>= 1.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AurorisNet.InteractiveReports.Client.FileDownload:
| Package | Downloads |
|---|---|
|
AurorisNet.Umbraco.AppBlocks.InteractiveReports
Optional Interactive Reports companion for AppBlocks on Umbraco. Requires AppBlocks. |
GitHub repositories
This package is not used by any popular GitHub repositories.