string f;
f = "D:\openexcel.xls";
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.Open, IO.FileAccess.ReadWrite);
if (!IsPostBack)
{
FarPoint.Excel.ExcelWarning w = new FarPoint.Excel.ExcelWarningList();
FpSpread1.OpenExcel(s, 0, 1, w);
}
Dim f As String
f = "D:\openexcel.xls"
Dim s As New System.IO.FileStream(f, IO.FileMode.Open, IO.FileAccess.ReadWrite)
If Not IsPostBack Then
Dim w As New FarPoint.Excel.ExcelWarningList
FpSpread1.OpenExcel(s, 0, 1, w)
End If