//
// This code is part of Document Solutions for Word demos.
// Copyright (c) MESCIUS inc. All rights reserved.
//
using System;
using System.IO;
using System.Drawing;
using System.Collections.Generic;
using System.Linq;
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;
}
}
}