HelloWorld.vb
''
'' This code is part of Document Solutions for Word demos.
'' Copyright (c) MESCIUS inc. All rights reserved.
''
Imports GrapeCity.Documents.Word

'' One of the simplest ways to create a "Hello, World!" DDCX.
Public Class HelloWorld
    Function CreateDocx() As GcWordDocument
        ' Create a new Word document:
        Dim doc As New GcWordDocument()
        ' Add a paragraph with the "Hello, World!" text to the document:
        doc.Body.Paragraphs.Add("Hello, World, from DsWord and VB.NET!")
        ' Done
        Return doc
    End Function
End Class