Word Office Component - Hello World

Create Word documents quickly with OfficeComponent Word library

We will go from basic information to the code example to help you get started.

What is Word?

  • Microsoft Word, also known as Winword, is a popular text-editing program nowadays by the well-known software company Microsoft. It allows users to work with raw text (text), effects such as fonts, colors, along with graphics (graphics) and many other multimedia effects (multimedia) such as audio, video. Make text editing more convenient. There are also tools like spell checking, the grammar of many different languages ​​to support the user.

  • Versions of Word usually store filenames with the extension .doc, or .docx for versions from Word 2007 onwards. Most versions of Word can open raw text files (.txt) and also work with other formats, such as hypertext processing (.html), web page design.

  • The Word software in the Office Suite seems extremely popular. Type knock and type. But Word is stronger than it looks.

  • Since 1997 (Word 97), Word has had the following functions:

  • Draw AutoShape shapes with transparent colors
  • The text includes image processing.
  • Ability to link with other office documents like Excel and PowerPoint
  • Print support without using the printer menu
  • Automatic text backup
  • Certainly text editor already
  • etc.
  • Since the 2007 version of Office, despite significant improvements in interface and features, it is volatile. With the new file extension system, "Docx", Word makes it difficult for users with too bold and unstable changes.

  • Office 2010 inherits the advantages of 2007, and the stability of 2003 and improves many features that were criticized by users in 2007.

  • In short, Word is a powerful text editor. Newspapers, contracts, books, websites, e-books, even block schedules, sheet calendars, milk cartons, leaflets, etc.

  • Word can be used to compile from A to Z. With the 2010 version, your text will bring any nuance you want: professional, cute, casual, warm.

It also provides a robust set of image processing tools (no longer having to worry about opening Photoshop to edit images before putting them into Word).

With the Visual Basic for Application commands, Word also allows you to insert sound, movies, everything you want into Word (but this feature is a bit difficult to use, hidden quite carefully). Add-ins, Word add-ons are among the most diverse in the world, including those of the world's largest software corporations such as Adobe, Google, Oracle, and of course, Microsoft and Google.

  • Using Word is considered to be extremely easy; even children can do. With the 2010 version, it is possible that illiterate children can also use Word with pictures that illustrate the beautiful and bright features. (This is Microsoft's strength - Ease of use).

The history of Word

Release Year Name Version Note
1989 Word for Windows 1.0 1.0 Code-named Opus
1990 Word for Windows Version 1.1 1.1 For Windows 3.0. Code-named Bill the Cat
1990 Word for Windows Version 1.1a 1.1a On March 25, 2014, Microsoft made the source code for Word for Windows 1.1a available through the Computer History Museum.
1991 Word for Windows Version 2.0 2.0 Code-named Spaceman Spiff - Included in Office 3.0.
1993 Word for Windows Version 6.0 6.0 Code-named T3 (renumbered 6 to bring Windows version numbering in line with that of Mac OS version, WordPerfect, and also DOS version, the main competing word processor at this time; also a 32-bit version for Windows NT only). Office 4.0, 4.2, and Office 4.3 support this version.
1995 Winword - Word for Windows Version 95 7.0 Along with the advent of Windows 95, a 32-bit version of the Windows operating system, Microsoft released Word 95, also known as Word 7.0. Word 7.0 is similar to Word 6.0, but it supports a 32-bit mode of Windows 95, which typically supports long filenames, while MS-DOS only supports long file names. up to 8 characters for the name, and three characters for the extension, referred to as 8.3.
1997 Word 97 8.0 This is the next popular version, belonging to the Office 97 product package.
1998 Word 98 8.5 Included in Office 97 Supported by Word 98, only available in Japan and Korea.
1999 Word 2000 9.0 Office 2000
2001 Word 2002 10.0 Office XP. Also known as Word 2002.
2003 Microsoft Word 2003 11.0 Included in Office 2003
2006 Microsoft Word 2007 12.0 Included in Office 2007; released for businesses on November 30, 2006, released worldwide for consumers on January 30, 2007. Extended support until October 10, 2017. The interface is completely different from the previous versions. Therefore, versions of Word before 2007 do not support the .docx format. Particularly for Word XP and Word 2003, if you want to read .docx format, you must have the Office Compatibility Pack installed by Microsoft for free.
2010 Word 2010 14.0 Office 2010
2013 Word 2013 15.0 Office 2013 (just need to install Windows 10 immediately Word 13 on the computer)
2016 Word 2016 16.0 Included in Office 2016
2019 Word 2019 16.0 Included in Office 2019

Sync with Word

With Word installed on a PC, Mac, or Mobile Device, you can:

  • Create and format your document with themes.
  • Review work with change tracking.
  • Perfect your articles with tools such as proofread editors.
  • Share your chat work, annotate, and collaborate with others, wherever they are.

Hello World with Hello Word

In this section, we'll show you how to create a Word document right in your application with the Word Office Component.

Create a new Word Document

For many platforms such as .NET and VB, it can be difficult and laborious to create a new Word document.

That will not happen again cause from now on, with the Word Office Component, you will have the ability to create yourself a new Word document with just ONE single line of code. Here, we take advantage of the WordDocument class in our OfficeComponent.Word library. So, first of all, make sure you have installed the Word Office Component library; the next steps will be straightforward; please follow us.

Source code of this demo

  • C# Version:
// Create a new instance of WordDocument class.
WordDocument document = new WordDocument();

// Add a new section to the document.
Section section = document.AddSection();

// You are adding a new paragraph to the section.
Paragraph paragraph = section.AddParagraph();

// Insert Text into the paragraph
paragraph.AppendText("OfficeComponent Word - Hello World!");

string fileName = Path.Combine(OutputDir, this.GetType().Name + "_" + Guid.NewGuid().ToString() + GetExtension(SaveAsFormat));
// Save the document.
document.Save(fileName, SaveAsFormat);

// Close the document.

// return the generate file path.
return fileName;
  • VB Version:
            ' Create a new instance of WordDocument class.
            Dim document As New WordDocument()

            ' Add a new section to the document.
            Dim section As Section = document.AddSection()

            ' Adding a new paragraph to the section.
            Dim paragraph As Paragraph = section.AddParagraph()

            ' Insert Text into the paragraph
            paragraph.AppendText("OfficeComponent Word - Hello World!")

            Dim fileName As String = Path.Combine(OutputDir, Me.GetType().Name & "_" & Guid.NewGuid().ToString() & GetExtension(SaveAsFormat))
            ' Save the document.
            document.Save(fileName, SaveAsFormat)

            ' Close the document.

            ' return the generate file path.
            Return fileName

The full source code of this example is available in our Word package. A live demo for Hello World is also available on our site. If you also need Word functionality, check out our Word online demos.

45-Day Money Back Guarantee

We will refund your full money in 45 days
if you are not satisfied with our products

Buy Now
You have successfully subcribed to our mailing list.
Dont miss out Get update on new articles and other opportunities Subscribe