一.前台代碼
<tr>
<td>
<br />
<asp:Button ID=
<asp:Button ID=
<br />
<FarPoint:FpSpread ID=
BorderWidth=
<CommandBar BackColor=
ButtonShadowColor=
<Sheets>
<FarPoint:SheetView SheetName=
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</td>
</tr>
二.後台代碼
/// <summary>
/// 加載存在的文件
/// </summary>
private void LoadFile()
{
//this
try
{
this
this
this
}
catch(Exception ex)
{
LhTools
}
}
/// <summary>
/// 綁定服務項目列表
/// </summary>
/// <param name=
private void ReportBindDataOffwxmLB(DataTable dt)
{
int intR =
int intI;
int intH =
intH=this
try
{
//this
if (dt != null)
{
if (ddlfwxm
else { this
foreach (DataRow dr in dt
{
intR++;
this
this
this
this
this
this
this
this
this
this
this
for (intI =
{this
this
this
this
this
}
}
}
{
this
this
}
}
catch(Exception ex)
{
throw new Exception(ex
}
}
/// <summary>
/// 保存為excel
/// </summary>
/// <param name=
/// <param name=
protected void btnSave_Click(object sender
{
try
{
string fileName = Guid
string path = Server
bool retvalue = FpSpread
//FpSpread
if (retvalue)
{
//success
HttpResponse response = HttpContext
response
response
string httpHeader =
response
response
System
response
}
}
catch (Exception ex)
{
LhTools
}
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21806.html