AceoffixCtrlCreateNewDocument Method |
Namespace: Aceoffix
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.
![]() |
---|
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. |
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);