Пример #1
0
        public static Document CreateDocument()
        {
            // Create a new MigraDoc document
            Document document = new Document();

            document.Info.Title   = "Hello, MigraDoc";
            document.Info.Subject = "Demonstrates an excerpt of the capabilities of MigraDoc.";
            document.Info.Author  = "Stefan Lange";

            Styles.DefineStyles(document);

            Cover.DefineCover(document);
            TableOfContents.DefineTableOfContents(document);

            DefineContentSection(document);

            Paragraphs.DefineParagraphs(document);
            Tables.DefineTables(document);
            Charts.DefineCharts(document);

            return(document);
        }
        public static MigraDocMadeEZR CreateDocument()
        {
            // Create a new MigraDoc document.
            var document = new MigraDocMadeEZR();

            document.InfoTitle   = "Hello, MigraDoc";
            document.InfoSubject = "Demonstrates an excerpt of the capabilities of MigraDoc.";
            document.InfoAuthor  = "Stefan Lange (modifications by Thomas Hövel)";

            Styles.DefineStyles(document);

            Cover.DefineCover(document);
            TableOfContents.DefineTableOfContents(document);

            DefineContentSection(document);

            Paragraphs.DefineParagraphs(document);
            Tables.DefineTables(document);
            Charts.DefineCharts(document);

            return(document);
        }