FluentReport.Schema
1.0.0
dotnet add package FluentReport.Schema --version 1.0.0
NuGet\Install-Package FluentReport.Schema -Version 1.0.0
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="FluentReport.Schema" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentReport.Schema" Version="1.0.0" />
<PackageReference Include="FluentReport.Schema" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluentReport.Schema --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentReport.Schema, 1.0.0"
#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.
#:package FluentReport.Schema@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluentReport.Schema&version=1.0.0
#tool nuget:?package=FluentReport.Schema&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluentReport.Schema
Importador de esquemas YAML/JSON para FluentReport. Convierte un archivo del esquema del editor en un Document listo para renderizar en PDF, Excel o HTML usando el pipeline existente.
Installation
dotnet add package FluentReport.Schema
Quick start
using FluentReport;
using FluentReport.Schema;
var dataSources = new Dictionary<string, IEnumerable<object>>
{
["sales"] = new[]
{
(object)new { region = "North", month = "Jan", revenue = 1200m },
(object)new { region = "South", month = "Jan", revenue = 980m }
}
};
var parameters = new Dictionary<string, object>
{
["companyName"] = "Acme Corp",
["period"] = "2026-Q1"
};
var doc = DocumentSchemaExtensions.FromSchema("reports/revenue.frpt.yaml", dataSources, parameters);
doc.GeneratePdf("revenue.pdf");
doc.GenerateExcel("revenue.xlsx");
doc.GenerateHtml("revenue.html");
API
| Method | Description |
|---|---|
FromSchema(path, dataSources, parameters) |
Importa desde archivo .yaml, .yml o .json |
FromSchemaStream(stream, format, dataSources, parameters) |
Importa desde Stream (format: yaml o json) |
FromSchemaYaml(yaml, dataSources, parameters) |
Importa desde YAML string |
FromSchemaJson(json, dataSources, parameters) |
Importa desde JSON string |
Mapping YAML ⇒ Fluent API
| YAML node | FluentReport equivalente |
|---|---|
regions.*.nodes[].type: text |
TextElement / .Text(...) |
line |
LineElement / .Line(...) |
spacer |
SpacerElement / .Spacer(...) |
pageBreak |
PageBreakElement / .PageBreak() |
image |
ImageElement / .Image(...) |
table |
TableElement / .Table(...) |
repeat |
ListElement / .List(...) |
groupInstance |
Expansión de definitions.groups |
styleRef + styles.* |
TextStyle |
{{ parameters.x }} / {{ row.y }} |
Resolución de bindings antes del render |
La traducción final usa
Document.FromSettings(...)para reutilizar los renderers existentes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FluentReport (>= 1.0.0)
- YamlDotNet (>= 17.1.0)
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 |
|---|---|---|
| 1.0.0 | 99 | 5/11/2026 |