MPSC.PlenoSoft.Office.PlenoExcel
1.0.0.115
Requires NuGet 3.5.0 or higher.
dotnet add package MPSC.PlenoSoft.Office.PlenoExcel --version 1.0.0.115
NuGet\Install-Package MPSC.PlenoSoft.Office.PlenoExcel -Version 1.0.0.115
<PackageReference Include="MPSC.PlenoSoft.Office.PlenoExcel" Version="1.0.0.115" />
paket add MPSC.PlenoSoft.Office.PlenoExcel --version 1.0.0.115
#r "nuget: MPSC.PlenoSoft.Office.PlenoExcel, 1.0.0.115"
// Install MPSC.PlenoSoft.Office.PlenoExcel as a Cake Addin
#addin nuget:?package=MPSC.PlenoSoft.Office.PlenoExcel&version=1.0.0.115
// Install MPSC.PlenoSoft.Office.PlenoExcel as a Cake Tool
#tool nuget:?package=MPSC.PlenoSoft.Office.PlenoExcel&version=1.0.0.115
Pleno Excel é um façade para o DocumentFormat.OpenXML muito simples de utilizar.
[TestClass]
public class MPSC.PlenoSoft.Office.PlenoExcel.Testes
{
[TestMethod]
public void Exemplo_De_Como_Gerar_Uma_Planilha_Excel()
{
var arquivoExcel = new FileInfo(@"C:\Temp\PlenoExcel.xlsx");
var plenoExcel = new PlenoExcel(arquivoExcel, Modo.Padrao);
var plan1 = plenoExcel["Plan1"];
plan1.Escrever("A", 1, "Número 1", Style.Header);
plan1.Escrever("B", 1, "Número 2", Style.Header);
plan1.Escrever("C", 1, "Soma", Style.Header);
plan1.Escrever("A", 2, 6, Style.Geral);
plan1.Escrever("B", 2, 4, Style.Geral);
plan1.Escrever("C", 2, "=SUM(A2:B2)", Style.Geral);
plenoExcel.Salvar();
plenoExcel.Fechar();
}
[TestMethod]
public void Exemplo_De_Como_Gerar_Uma_Planilha_Excel_A_Partir_De_Uma_Lista_De_DTOs()
{
var arquivoExcel = new FileInfo(@"C:\Temp\PlenoExcel.xlsx");
var plenoExcel = new PlenoExcel(arquivoExcel, Modo.Padrao | Modo.ApagarSeExistir);
plenoExcel.Exportar(listaDTO);
plenoExcel.Fechar();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- DocumentFormat.OpenXml (>= 2.7.2)
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 |
---|
(Atual)
2018/02/02 - 1.0.0.115 -> Correção do defeito de exportar campo do tipo Decimal;
2017/10/20 - 1.0.0.114 -> Possibilitar o carregamento automático da configuração através de arquivo XML;
2017/10/18 - 1.0.0.113 -> Correção do posicionamento do cabeçalho;
2017/09/14 - 1.0.0.112 -> Implementando a configuração através de recursos externos da aplicação;
2017/08/17 - 1.0.0.111 -> Suporte à Backup durante a manipulação de arquivos;
2017/08/07 - 1.0.0.110 -> Configuração de campos através de Atributos no DTO;
2017/08/06 - 1.0.0.109 -> Exportação de Listas de um DTO como sheets da planilha;
2017/08/05 - 1.0.0.108 -> Versão Inicial do façade para o DocumentFormat.OpenXML muito simples de utilizar;