---
title: "Create a Document"
---


{{% alert color="grey" %}}

## Purpose Summary

This page describes how to create a new Word processing document from scratch and insert basic content such as paragraphs and runs.

{{% /alert %}}

On this page we will look at how to create a document using Aspose.Words or Open XML SDK.

{{< nosnippet >}}

{{< tabs tabTotal="2" tabID="1" tabName1="Aspose.Words" tabName2="Open XML SDK" >}}

{{< tab tabNum="1" >}}

In Aspose.Words, we normally use the [Document](https://reference.aspose.com/words/net/aspose.words/document/) class to create a document and the [DocumentBuilder](https://reference.aspose.com/words/net/aspose.words/documentbuilder/) class to modify it.

The following code example shows how to create a document:

{{< gist "aspose-words-gists" "e75459ad5b9ea7ac4cbea10ab631a491" "create-new-document-aspose-words.cs" >}}

{{< /tab >}}

{{< tab tabNum="2" >}}

You can also do the same using the Open XML SDK. At the same time, note that it looks somewhat more complicated and more cumbersome.

The following code example shows how to create a document:

{{< gist "aspose-words-gists" "e75459ad5b9ea7ac4cbea10ab631a491" "create-new-document-open-xml.cs" >}}

{{< /tab >}}

{{< /tabs >}}

{{< /nosnippet >}}

{{% alert color="primary" %}}

You can download the sample file of this example from [Aspose.Words GitHub](https://github.com/aspose-words/Aspose.Words-for-.NET/tree/master/Plugins/Aspose.Words%20Vs%20OpenXML%20Words/Aspose.Words%20VS%20OpenXML).

{{% /alert %}}

{{% alert color="primary" %}}

For more information about Aspose.Words features please visit [Create or Load a Document](/words/net/create-or-load-a-document/).

{{% /alert %}}
