private void button1_Click(object sender, System.EventArgs e)
{
Excel.ApplicationClass excel=new Microsoft.Office.Interop.Excel.ApplicationClass ();
excel.Application .Workbooks .Add (true);
excel.Visible =true;
Excel.Range myrange=excel.get_Range (excel.Cells [1,1],excel.Cells [2,2]);
myrange.NumberFormatLocal ="@";
excel.Cells [1,1]="0001";
}
用上面几句就可以实现的
不过打开后的上面有一个小叹号
[此贴子已经被作者于2006-8-25 16:13:19编辑过]

此号自封于2006年11月30日