我想在xlWorkbook中创建4张纸;
private void btnExportExcel_Click(object sender, EventArgs e)
{
Excel.Application xlApp;
Excel.Workbook xlWorkbook;
Excel.Worksheet xlWorkSheet;
xlWorkSheet = (Excel.Worksheet)xlWorkbook.Worksheets.get_Item(1);
// Code Logic
}
我试过了
Excel.Worksheet xlWorkSheet2;
xlWorkSheet2 = (Excel.Worksheet)xlWorkbook.Worksheets.get_Item(2);
但没有解决。有人可以帮我吗
江户川乱折腾
相关分类