Click or drag to resize
AceoffixCtrlLoad Event
The default event of AceoffixCtrl. Initializing AceoffixCtrl and opening the document at here.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public event EventHandler Load

Value

Type: SystemEventHandler
Remarks

The default event of AceoffixCtrl. Initializing AceoffixCtrl and opening the document at here.

Examples

In the ASPX designer of Visual Studio.Net, first drag a AceoffixCtrl control from Toolbox into the current page and double-click the control to create a Load event handler, and then add the following code.

protected void AceoffixCtrl1_Load(object sender, EventArgs e)
{
    //Set the server page of AceoffixCtrl.
    AceoffixCtrl1.ServerPage = "aceoffix-runtime/server.aspx"; // Required

    //Set style of AceoffixCtrl.
    AceoffixCtrl1.Caption = "Subject: This is a test document. [Double click the title bar to enter/exit full screen]";
    AceoffixCtrl1.Theme = Aceoffix.ThemeType.Office2010;
    AceoffixCtrl1.BorderStyle = Aceoffix.BorderStyleType.BorderFlat;

    //Turn off the menu bar of AceoffixCtrl.
    AceoffixCtrl1.Menubar = false;
    //Turn off the toolbars of Office application.
    AceoffixCtrl1.OfficeToolbars = false;

    //Set server page for saving document.
    AceoffixCtrl1.SaveFilePage = "savefile.aspx";
    //Open Word document.
    AceoffixCtrl1.OpenDocument("doc/test.doc", Aceoffix.OpenModeType.docNormalEdit, "John Scott");
}
See Also