﻿using System;
using System.Data;
using System.IO;
using SGLibrary.Extend;

namespace SGLibrary.Framework.GridBind
{
    public interface IBindToExcel
    {
        KeyText<Boolean> DataSetToExcel(DataSet data, String excelFileName);
        KeyText<Boolean> DataTableToExcel(DataTable data, String excelFileName);
        KeyText<Boolean> ArrayToExcel(String[,] data, String sheetName, String excelFileName);

        MemoryStream DataSetToExcel(DataSet data);
        MemoryStream DataTableToExcel(DataTable data);
        MemoryStream ArrayToExcel(String[,] data, String sheetName);
    }
}
