EasyStm 2023.3.4.15
dotnet add package EasyStm --version 2023.3.4.15
NuGet\Install-Package EasyStm -Version 2023.3.4.15
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="EasyStm" Version="2023.3.4.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyStm --version 2023.3.4.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasyStm, 2023.3.4.15"
#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 EasyStm as a Cake Addin #addin nuget:?package=EasyStm&version=2023.3.4.15 // Install EasyStm as a Cake Tool #tool nuget:?package=EasyStm&version=2023.3.4.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EasyStm Tool Is Made to Use StimulSoft In Easier Way And Clean Code
First Of All Add Below Config In AppSetting :
"Stimulsoft": {
"License": "Your LicenseKey"
}
Then :
Add wwwroot Folder In Api
wwwroot Contains Two Folder
fonts,reports
Add Your StimulReport Files In reports
Add your fonts in fonts folder
Usage Example:
// TryEasyStmClass.cs
using EasyStm.Models;
using EasyStm.Reports.Pdf;
namespace TryEasyStm;
public class TryEasyStmClass : ITryEasyStmClass
{
private readonly IStmReports _stmReports;
public TryEasyStmClass(IStmReports stmReports)
{
_stmReports = stmReports;
}
public async Task<ReportResult> TryEasyStm_Single()
{
// If You have One BusinessObject
var reportBusinessObject = new ReportObject<object>()
{
BusinessObjectName = "PersonDetails",
ObjectData = new { name = "name 1234" }
};
var FontsList = new List<ReportFont>() {
new ReportFont{ FontName = "FontName1"},
new ReportFont{ FontName = "FontName2"},
};
var info = new ReportInfo()
{
FontName = FontsList,
FontExtension = "ttf", // Defualt Is "ttf"
ReportFileName = "Stimul Report File Name.mrt",
PdfFileName = "pdf Result FileName",
};
var ReportResult = await _stmReports.PrintPDFAsync(reportBusinessObject, info);
return ReportResult;
}
public async Task<ReportResult> TryEasyStm_List()
{
// If You have Multiple BusinessObject
var reportBusinessObjects = new List<ReportObject<object>>() {
new ReportObject<object>{ BusinessObjectName = "PersonDetails" , ObjectData = new{ name = "name 1234"} },
new ReportObject<object>{ BusinessObjectName = "JobDetails" , ObjectData = new{jobname="jobname 125788"} },
new ReportObject<object>{ BusinessObjectName = "CompanyDetails" , ObjectData = new{ companyname = "companyname 31598772"} }
};
var FontsList = new List<ReportFont>() {
new ReportFont{ FontName = "FontName1"},
new ReportFont{ FontName = "FontName2"},
};
var info = new ReportInfo()
{
FontName = FontsList,
FontExtension = "ttf", // Defualt Is "ttf"
ReportFileName = "Stimul Report File Name.mrt",
PdfFileName = "pdf Result FileName",
};
ReportResult ReportResult = await _stmReports.PrintPDFAsync(reportBusinessObjects, info);
return ReportResult;
}
}
-------------------------------------------------------------------------------------------------------------------------------------------
//Controller.cs
private readonly ITryEasyStmClass _tryEasyStmClass;
public tryStmController(ITryEasyStmClass tryEasyStmClass)
{
_tryEasyStmClass = tryEasyStmClass;
}
[HttpPost(nameof(GetReport))]
public async Task<ReportResult> GetReport()
{
return await _tryEasyStmClass.TryEasyStm_List();
}
-------------------------------------------------------------------------------------------------------------------------------------------
//Program.cs
builder.Services.AddScoped<IStmReports, StmReports>();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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.
-
net7.0
- Stimulsoft.Reports.Web.NetCore (>= 2023.3.4)
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 |
---|---|---|
2023.3.4.15 | 172 | 10/8/2023 |
2023.1.1.15 | 138 | 10/8/2023 |
2019.2.1.15 | 141 | 10/8/2023 |