forked from ddrilling/AsbCloudServer
32 lines
834 B
C#
32 lines
834 B
C#
using AsbCloudInfrastructure.Services.DailyReport;
|
|
using System;
|
|
|
|
namespace ConsoleApp1
|
|
{
|
|
|
|
class Program
|
|
{
|
|
static void Main(/*string[] args*/)
|
|
{
|
|
// use ServiceFactory to make services
|
|
var makerExcel = new DailyReportMakerExcel();
|
|
|
|
AsbCloudApp.Data.DailyReportDto dto = new() {
|
|
WellName = "111",
|
|
ClusterName = "cluster name",
|
|
Contractor = "NaftaGas",
|
|
};
|
|
|
|
using var stream = makerExcel.MakeReport(dto);
|
|
using (var fileStream = System.IO.File.Create(@"c:/temp/1.xlsx"))
|
|
{
|
|
stream.CopyTo(fileStream);
|
|
fileStream.Flush();
|
|
}
|
|
|
|
Console.WriteLine("End of Test");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|