比如合并单元格,设置颜色等,我想成为专家,哪里有全面的资料介绍
解决方案 »
- 软件拿到国外去用,应该如何修改?
- jpg图像上任意两点的行列号要怎么求?
- 取出有规律的字符串中的数字
- 游戏外挂程序的开发
- 熟悉VB的进来看下
- 有没有象 sqlhelper 一样的访问 access数据库的类呢?
- 分享!大家互相支持吧·UP有分
- 请问如何在自定义控件中加入ToolTip属性?分不够可以再加!
- 请问微软企业库是不是对桌面数据库支持不够好?
- 高手进入(在线等候):如何解决动态查找窗体的问题!
- C#连接oracle报java.lang.UnsatisfiedLinkError 异常我跟踪是在打开数据库连接时报的,我用的是Client.OracleConnection
- 怎么使得combobox用DataSource做数据Bind时,第一行是空白行?
???并不能用Color.Red,请问如何写???
{
//设置第nRown行为红色
mysheet.get_Range((Excel.Range)mysheet.Cells[nRown,1],(Excel.Range)mysheet.Cells[nRown,14]).Select();
mysheet.get_Range((Excel.Range)mysheet.Cells[nRown,1],(Excel.Range)mysheet.Cells[nRown,14]).Interior.ColorIndex=3;
MessageBox.Show("修改成功");
}
刚开始定义的时候是不是这样写:
protected Excel.ApplicationClass app=new Excel.ApplicationClass();
protected Excel.Workbooks myworks;
protected Excel.Workbook mywork;
protected Excel.Worksheet mysheet;
myworks=app.Workbooks;
mywork=myworks.Add(true);
mysheet=(Excel.Worksheet)mywork.Worksheets.Add(true,true,true,true);
mysheet.Name="sheet1";