LongDoc1.cs
//
// This code is part of GrapeCity Documents for Word samples.
// Copyright (c) GrapeCity, Inc. All rights reserved.
//
using System;
using System.IO;
using System.Drawing;
using GrapeCity.Documents.Word;

namespace GcWordWeb.Samples
{
    // In this sample, we load a 1000-paragraph document of Lorem Ipsum.
    public class LongDoc1
    {
        public GcWordDocument CreateDocx()
        {
            GcWordDocument doc = new GcWordDocument();

            var pars = doc.Body.Sections.First.GetRange().Paragraphs;
            for (int i = 0; i < 1000; ++i)
                pars.Add(Util.LoremIpsumPar());
            return doc;
        }
    }
}