DevExpressSpreadSheet操作示例

更新时间:2023-07-20 19:44:33 阅读: 评论:0

DevExpressSpreadSheet操作⽰例private void button1_Click(object nder, EventArgs e)
{
string fileName = string.Empty;
openFileDialog.Filter = "Excel ⼯作簿|*.xlsx|Excel(97-2003)⼯作簿|*.xls";
三为openFileDialog.RestoreDirectory = true;
lend过去式
blogif (openFileDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
办公室潜规则return;
}
医务人员九不准
txtFilePath.Text = System.IO.Path.GetFullPath(openFileDialog.FileName);
sheetControl.LoadDocument(txtFilePath.Text);
形容淡定的成语
}
private void button2_Click(object nder, EventArgs e)
{
宁缺毋滥是什么意思Worksheet sheet = sheetControl.ActiveSheet as Worksheet;
var rowInfo= sheetControl.ActiveWorksheet.Rows;
Range range = sheetControl.ActiveWorksheet.GetDataRange();
for (int row = 0; row < range.RowCount; row++ )
{
for (int col = 0; col < range.ColumnCount; col++)
{
string s = sheetControl.ActiveWorksheet.GetCellValue(col, row).TextValue;
MessageBox.Show(s);
}立方体抗压强度
}
}

本文发布于:2023-07-20 19:44:33,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1107504.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图