MESCIUS.ActiveReports.SpreadBuilder
3.0.0
dotnet add package MESCIUS.ActiveReports.SpreadBuilder --version 3.0.0
NuGet\Install-Package MESCIUS.ActiveReports.SpreadBuilder -Version 3.0.0
<PackageReference Include="MESCIUS.ActiveReports.SpreadBuilder" Version="3.0.0" />
paket add MESCIUS.ActiveReports.SpreadBuilder --version 3.0.0
#r "nuget: MESCIUS.ActiveReports.SpreadBuilder, 3.0.0"
// Install MESCIUS.ActiveReports.SpreadBuilder as a Cake Addin #addin nuget:?package=MESCIUS.ActiveReports.SpreadBuilder&version=3.0.0 // Install MESCIUS.ActiveReports.SpreadBuilder as a Cake Tool #tool nuget:?package=MESCIUS.ActiveReports.SpreadBuilder&version=3.0.0
Introduction
ActiveReports is a unique collection of developer reporting tools that help consume, process, and visualize data in the form of compelling and easy-to-understand reports.
ActiveReports provides a lot of features for developers and end-users, like:
- VisualStudio integration support.
- PaaS support (like Azure Linux App Service).
- Different possibilities to pivot and aggregate data.
- Rich data visualization.
- Popular export formats (like PDF/Excel/Word).
- And a lot more (https://developer.mescius.com/activereportsnet).
Concept
This package includes the .NET and .NET Core assemblies for reading, manipulating and writing Excel files. So you can create Excel spreadsheets cell by cell.
Example:
// Create a Workbook and add a sheet to its Sheets collection
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(1, 1);
System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(bitmap);
GrapeCity.SpreadBuilder.Workbook sb = new GrapeCity.SpreadBuilder.Workbook((text, measurementParams) =>
{
// required for auto-row height function only
System.Drawing.FontStyle style = System.Drawing.FontStyle.Regular;
if (measurementParams.FontBold) style |= System.Drawing.FontStyle.Bold;
if (measurementParams.FontItalic) style |= System.Drawing.FontStyle.Italic;
using (System.Drawing.Font gFont = new System.Drawing.Font(measurementParams.FontName, measurementParams.FontSize, style))
{
int maxWidth = (int)System.Math.Ceiling(measurementParams.MaxWidth);
System.Drawing.SizeF size = graphics.MeasureString(text, gFont, maxWidth == 0 ? 999999 : maxWidth);
return new System.Drawing.SizeF((float)System.Math.Ceiling(size.Width), (float)System.Math.Ceiling(size.Height));
}
});
sb.Sheets.AddNew();
// Set up properties and values for columns, rows and cells as desired
sb.Sheets[0].Name = "Customer Call List";
sb.Sheets[0].Columns(0).Width = 2 * 1440;
sb.Sheets[0].Columns(1).Width = 1440;
sb.Sheets[0].Columns(2).Width = 1440;
sb.Sheets[0].Rows(0).Height = 1440 / 4;
// Header row
sb.Sheets[0].Cell(0,0).SetValue("Company Name");
sb.Sheets[0].Cell(0,0).FontBold = true;
sb.Sheets[0].Cell(0,1).SetValue("Contact Name");
sb.Sheets[0].Cell(0,1).FontBold = true;
sb.Sheets[0].Cell(0,2).SetValue("Phone");
sb.Sheets[0].Cell(0,2).FontBold = true;
// First row of data
sb.Sheets[0].Cell(1,0).SetValue("GrapeCity");
sb.Sheets[0].Cell(1,1).SetValue("Mortimer");
sb.Sheets[0].Cell(1,2).SetValue("(425) 880-2601");
// Save the Workbook to an Excel file
sb.Save("test.xls");
See also
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- DocumentFormat.OpenXml (>= 3.2.0 && < 4.0.0)
- System.IO.Packaging (>= 8.0.1)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on MESCIUS.ActiveReports.SpreadBuilder:
Package | Downloads |
---|---|
MESCIUS.ActiveReports.Export.Excel
ActiveReports is a set of assemblies that enable you to create, render, print, and export reports in a .NET or .NET Core application. This package includes the core engine assemblies required to create and render pixel perfect, WYSIWYG, reports. |
|
MESCIUS.ActiveReports.Export.Word
ActiveReports is a set of assemblies that enable you to create, render, print, and export reports in a .NET or .NET Core application. This package includes the core engine assemblies required to create and render pixel perfect, WYSIWYG, reports. |
|
MESCIUS.ActiveReports.Export.Excel.ja
ActiveReportsは、.NET または .NET Frameworkアプリで帳票を作成するライブラリです。 |
|
MESCIUS.ActiveReports.Export.Word.ja
ActiveReportsは、.NET または .NET Frameworkアプリで帳票を作成するライブラリです。 |
|
MESCIUS.ActiveReports.Web.Viewer.ja
ActiveReports は、.NET または .NET Framework アプリケーションで帳票を作成するライブラリです。このパッケージには、Webフォーム用ビューワにレポートを表示するための内部ライブラリが含まれます。 |
GitHub repositories
This package is not used by any popular GitHub repositories.