JSReportGenerator 1.0.5
.NET Core 2.2
.NET Framework 4.6
dotnet add package JSReportGenerator --version 1.0.5
NuGet\Install-Package JSReportGenerator -Version 1.0.5
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="JSReportGenerator" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JSReportGenerator --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JSReportGenerator, 1.0.5"
#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 JSReportGenerator as a Cake Addin
#addin nuget:?package=JSReportGenerator&version=1.0.5
// Install JSReportGenerator as a Cake Tool
#tool nuget:?package=JSReportGenerator&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
---On Startup.cs ConfigureServices---
services.AddSingleton<IJSReportServer, JSReportServer>();
services.AddTransient<IJSReport, JSReport>();
---On Startup.cs Configure---
---Inject the IJSReportServer---
public void Configure(IApplicationBuilder app, IHostingEnvironment env, IJSReportServer ReportServer)
ReportServer.Start();
---On ApiController---
public IJSReportServer ReportServer { get; set; }
public IJSReport report { get; set; }
public TestController(IJSReportServer _ReportServer, IHostingEnvironment _env, IJSReport _Report)
{
ReportServer = _ReportServer;
report = _Report;
env = _env;
}
[HttpGet]
public string TestReport()
{
var names = new List<Names>();
names.Add(new Names() { FirstName = "Aron", LastName = "Consuelo" });
names.Add(new Names() { FirstName = "Guian", LastName = "Salanguit" });
names.Add(new Names() { FirstName = "Rossu", LastName = "Belmonte" });
var pets = new List<Pets>();
pets.Add(new Pets() { Owner = "Rossu", Name = "Dog" });
pets.Add(new Pets() { Owner = "Rossu", Name = "Cat" });
pets.Add(new Pets() { Owner = "Aron", Name = "Sheep" });
pets.Add(new Pets() { Owner = "Guian", Name = "Cow" });
report.JSReportService = ReportServer.JSReportService;
report.ReportPath = Path.Combine(env.ContentRootPath, "templates");
var pdf = report.AddDataSource(names).AddSubReport("Pets", pets).GenerateReport("test", ReportRecipe.ChromePdf);
return pdf;
}
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Framework | net46 net461 net462 net463 net47 net471 net472 net48 net481 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.2
- jsreport.Binary (>= 2.6.1)
- jsreport.Local (>= 2.2.2)
- jsreport.Types (>= 2.6.1)
- z.Data.Standard (>= 1.2.12)
-
.NETFramework 4.6
- jsreport.Binary (>= 2.6.1)
- jsreport.Local (>= 2.2.2)
- jsreport.Types (>= 2.6.1)
- z.Data.Standard (>= 1.2.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.