HelloWorld.cs
C# VB
//// This code is part of Document Solutions for Word demos.// Copyright (c) MESCIUS inc. All rights reserved.//using GrapeCity.Documents.Word;
namespace DsWordWeb.Demos{ // One of the simplest ways to create a "Hello, World!" DDCX. public class HelloWorld { public GcWordDocument CreateDocx() { // Create a new Word document: GcWordDocument doc = new GcWordDocument(); // Add a paragraph with the 'Hello, World!' text to the document: doc.Body.AddParagraph("Hello, World!"); // Done: return doc; } }}