Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
What is this page about?
This page describes how to create an empty document using NPOI and compares its behavior to Aspose.Words document creation.
Call the Document constructor without parameters to create a new blank document.
If you want to generate a document programmatically, the most reasonable step after creation is to use DocumentBuilder to add document contents.
C#
using Aspose.Words;
Document doc = new Document();
doc.Save("blank.docx");
Below example shows how to create a new document using NPOI XWPF
C#
using NPOI.XWPF.UserModel;
XWPFDocument doc = new XWPFDocument();
doc.CreateParagraph();
using (FileStream sw = File.Create("blank.docx"))
{
doc.Write(sw);
}
Download Create Empty Document from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.