04 2021 档案
摘要:System.Drawing.Color c = System.Drawing.Color.Blue; //获取系统颜色编号 int i = c.ToArgb(); string labelResultName = iconLabel.AddLabelText("注记", new Dot3D(dot
阅读全文
摘要:代码如下: private void DataGridViewExportSheet(Aspose.Cells.Worksheet sheet, DataGridView dataGridView) { int irows = dataGridView.RowCount; int icols = d
阅读全文
摘要:借用NPOI来实现,要在同一Excel文件中创建多个sheet,只需要在同一个workbook中创建多个sheet即可。要注意的是,sheet的名字一定不能重复。下面是实现的代码: private void buttonTest_Click(object sender, EventArgs e) {
阅读全文