PR

C# NPOIで作成したExcelシートの出力

public static void WriteBook(IWorkbook book, string filename)
{
    string filePath = FileSystem.Current.AppDataDirectory + "//" + filename;
    using (var writeFile = new FileStream(filePath, FileMode.Create))
    {
        book.Write(writeFile);
    }
}

コメント