using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Office.Interop.Excel;
using System.Data.SqlClient;
namespace ExcelOperator
{
public class ExcelOperator
{
public Application ExcelApplincation;
public Workbook ExcelWorkBook;
public Worksheet ExcelWorkSheet;
public ExcelOperator()
{
ExcelApplincation = new Application();
ExcelApplincation.Visible = true;
}
public void CreateExcel()
{
try
{
ExcelWorkBook = ExcelApplincation.Workbooks.Add();
Excel