HelloWorld.vb
  1. ''
  2. '' This code is part of Document Solutions for Word demos.
  3. '' Copyright (c) MESCIUS inc. All rights reserved.
  4. ''
  5. Imports GrapeCity.Documents.Word
  6.  
  7. '' One of the simplest ways to create a "Hello, World!" DDCX.
  8. Public Class HelloWorld
  9. Function CreateDocx() As GcWordDocument
  10. ' Create a new Word document:
  11. Dim doc As New GcWordDocument()
  12. ' Add a paragraph with the "Hello, World!" text to the document:
  13. doc.Body.Paragraphs.Add("Hello, World, from DsWord and VB.NET!")
  14. ' Done
  15. Return doc
  16. End Function
  17. End Class
  18.