Click or drag to resize
AceoffixCtrlCreateNewDocument Method
Creates a new document and open it for editing online.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public void CreateNewDocument(
	string UserName,
	DocumentVersion DocVersion
)

Parameters

UserName
Type: SystemString
The operator of the current document. Typically, UserName should be the name of current user who has logged in your web application.
DocVersion
Type: AceoffixDocumentVersion
The document type and version.
Remarks

If you want to create a new document and open it for editing online, you need to use CreateNewDocument method.

The CreateNewDocument method should be called at the end of code in Load.

Note Note
Creating new document on Web server is very different from creating new document on local computer. Creating new document on Web server must consider the compatibility with all the Microsoft Office softwares installed on client computers. In order to keep the compatibility of Office software version, you should choose the lower DocumentVersion when you create a new document by CreateNewDocument method.
Examples

The following code example shows how to use the CreateNewDocument method to create a blank document in Word2003 format.

AceoffixCtrl1.ServerPage = "aceoffix-runtime/server.aspx";
AceoffixCtrl1.SaveFilePage = "savefile.aspx?id=1&op=new";
AceoffixCtrl1.CreateNewDocument("John Scott", Aceoffix.DocumentVersion.Word2003);
See Also