确认一下看看有什么问题?谢谢!
前台代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FortTest.aspx.cs" Inherits="roject_Report_ReportQuery_FortTest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="FarPoint.Web.Spread" Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<FarPoint:FpSpread ID="FpSpread1" Style="z-index: 101; left: 160px; position: absolute;
top: 104px" runat="server" Width="448px" Height="223px">
<CommandBar ButtonShadowColor="ControlDark" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
BackColor="Control">
</CommandBar>
<Sheets>
<FarPoint:SheetView SheetName="Sheet1">
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</div>
</form>
</body>
</html>
后台代码:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class Project_Report_ReportQuery_FortTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
FpSpread1.OpenExcel(@"D:\ReportFile\字体测试_20101116111031.xls");
}
} |