Beispiel #1
0
        /// <summary>
        /// Generates the document using doc with table generator
        /// </summary>
        public void GenerateBuildNotesUsingBuildTemplate()
        {
            var otherDocs = new List <byte[]>();

            foreach (var buildDetail in this.GetDataContext())
            {
                var generationInfo = GetDocumentGenerationInfo("Build Notes", "1.0", buildDetail, @"Templates\BuildTemplateContent.docx", false);
                var docGenerator   = new BuildNotesDocumentGenerator(generationInfo, this.Exclusions.ToList());
                otherDocs.Add(docGenerator.GenerateDocument());
            }

            MergeBuildNotesAndCreateFinalOutput(otherDocs);
        }
Beispiel #2
0
        /// <summary>
        /// Generates the document using doc with table generator
        /// </summary>
        public void GenerateBuildNotesUsingBuildTemplate()
        {
            var otherDocs = new List<byte[]>();

            foreach (var buildDetail in this.GetDataContext())
            {
                var generationInfo = GetDocumentGenerationInfo("Build Notes", "1.0", buildDetail, @"Templates\BuildTemplateContent.docx", false);
                var docGenerator = new BuildNotesDocumentGenerator(generationInfo, this.Exclusions.ToList());
                otherDocs.Add(docGenerator.GenerateDocument());
            }

            MergeBuildNotesAndCreateFinalOutput(otherDocs);
        }