Aceoffix For ASP.NET and does not include ASP.NET Core, .NET 5, or any subsequent versions.Enables the embedding of Microsoft Office or WPS in web pages and provides functions such as online editing and saving of Office documents, access to document content, dynamic generation of document tables, control of editable areas, and submission of user input in Word/Excel.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Jan 8, 2026
$ dotnet add package Acesoft.AceoffixNetAceoffix For ASP.NET and does not include ASP.NET Core, .NET 5, or any subsequent versions .Enables the embedding of Microsoft Office or WPS in web pages and provides functions such as online editing and saving of Office documents, access to document content, dynamic generation of document tables, control of editable areas, and submission of user input in Word/Excel.
Copy the program downloaded in the previous step to the "bin" folder of the your web project.
Open this project using Visual Studio. Then right-click on the project folder, and click "Manage NuGet Packages -> Browse" in sequence. Enter "Acesoft.AceoffixNet" in the search box and install the latest version.
Please add the following code to the <handlers> tag in your Web.config file..
<system.webServer>
<handlers>
<add name="aceserver" path="/server.ace" verb="*" type="Aceoffix.AceServer.ServerHandler" />
<add name="aceclient" path="/aceclient" verb="GET" type="Aceoffix.AceServer.ServerHandler" />
<add name="aceoffix" path="/aceoffix.js" verb="GET" type="Aceoffix.AceServer.ServerHandler" />
</handlers>
</system.webServer>
<script type="text/javascript" src="aceoffix.js"></script>
Note: The path of aceoffix.js is relative to the root of your website.
Write the following link to pop up an Acebrowser window to edit Office document. We assume that the page which contains Aceoffix control is Word.aspx.
<a href="javascript:AceBrowser.openWindow('Word.aspx', 'width=1200px;height=800px;');" >Open Word File</a>
public Aceoffix.AceoffixCtrl aceCtrl = new Aceoffix.AceoffixCtrl();
protected void Page_Load(object sender, EventArgs e)
{
aceCtrl.SaveFilePage = "SaveFile.aspx";
aceCtrl.WebOpen("doc/editword.docx", Aceoffix.OpenModeType.docNormalEdit, "Tom");
} protected void Page_Load(object sender, EventArgs e)
{
// This page is used to receive the file saved by AceoffixCtrl.
Aceoffix.FileSaver fs = new Aceoffix.FileSaver();
fs.SaveToFile(Server.MapPath("doc/") + fs.FileName);
fs.Close();
}<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Word.aspx.cs" Inherits="Aceoffix_Net_Simple.Word" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Edit Word Demo</title>
</head>
<body>
<script type="text/javascript">
function SaveDoc() {
aceoffixctrl.WebSave();
}
function OnAceoffixCtrlInit() {
aceoffixctrl.AddCustomToolButton("Save", "SaveDoc()", 1);
}
</script>
<div style="width:auto;height:98vh;">
<%=aceCtrl.GetHtml() %>
</div>
</body>
</html>