很急的,各位兄弟帮个忙?
解决方案 »
- 继刚才的小算法再问个问题
- 急!急!急! oracle临时表最后一列老为空
- asp.net页面A.aspx传数据到B.aspx显示?
- 求一个一个数据库链接的访问SQL SERVER的基类,我作的网站,服务器提示用户过多,垮了,奉献自己用的基类
- 窗体显示的问题
- 这样的问题怎么没人回答啊?应该是有办法的吧?没人知道吗?上传流的问题
- 读取数据库的图片,输出来的结果为什么是System.Byte[]
- 这个错误是怎么回事?
- 又是打开ACCESS数据库的问题~~~急,在线等~~~
- [讨论]用什么工具写asp.net的程序?microsoft studio.net or frontpage2003 or dreamwear mx 2004
- 把图片和音乐放入数据库
- <求救>新建asp.net应用程序提示:http:/1.1 500 server error
Exception Details: System.Runtime.InteropServices.COMException: 服務器執行失敗,為什麼?
http://210.52.79.50/bbs/dispbbs.asp?boardID=13&ID=119&page=1
主要网址为xmbar.1m.cn
本站有免费送asp.net空间
http://210.52.79.50/bbs/dispbbs.asp?boardID=13&ID=119&page=1
主要网址为xmbar.1m.cn
本站有免费送asp.net空间
using System.Reflection;
using System.Runtime.InteropServices;
using Excel; class Excel {
public static int Main() {
Application exc = new Application();
if (exc == null) {
Console.WriteLine("ERROR: EXCEL couldn't be started!");
return 0;
} exc.set_Visible(0, true);
Workbooks workbooks = exc.Workbooks;
_Workbook workbook = workbooks.Add(XlWBATemplate.xlWBATWorksheet, 0);
Sheets sheets = workbook.Worksheets; _Worksheet worksheet = (_Worksheet) sheets.get_Item(1);
if (worksheet == null) {
Console.WriteLine ("ERROR: worksheet == null");
} Range range1 = worksheet.get_Range("C1", Missing.Value);
if (range1 == null) {
Console.WriteLine ("ERROR: range == null");
}
const int nCells = 1;
Object[] args1 = new Object[1];
args1[0] = nCells;
range1.GetType().InvokeMember("Value", BindingFlags.SetProperty, null,range1, args1);
return 100;
}
}
其中_Worksheet worksheet = (_Worksheet) sheets.get_Item(1); 每运行一次就增加一个sheet.