Microsoft.Office.Interop.Excel列宽自适应

来源:互联网 发布:淘宝钻石展位是在哪里 编辑:程序博客网 时间:2024/06/05 20:23


                        Microsoft.Office.Interop.Excel.Range fchR = excelSheet.Range[excelSheet.Cells[2, 1], excelSheet.Cells[index + 1, colCount]];
                        fchR.Value = datas;
                        Microsoft.Office.Interop.Excel.Range allColumn = excelSheet.Columns;
                        allColumn.AutoFit();
原创粉丝点击