CreateDocument() public method

Fills the document whith the result of the import
public CreateDocument ( Document importResult ) : void
importResult Importer.RtfDeltaImporter.Document
return void
        /// <summary>
        ///     Creates a report on the model, according to user's choices
        /// </summary>
        /// <returns>The document created, or null</returns>
        public override MigraDoc.DocumentObjectModel.Document BuildDocument()
        {
            MigraDoc.DocumentObjectModel.Document retVal = new MigraDoc.DocumentObjectModel.Document();

            retVal.Info.Title = "EFS Model report";
            retVal.Info.Author = "ERTMS Solutions";
            retVal.Info.Subject = "Model report";

            DeltaImportReport report = new DeltaImportReport(retVal);
            report.CreateDocument(ImportResult);

            return retVal;
        }
        /// <summary>
        ///     Creates a report on the model, according to user's choices
        /// </summary>
        /// <returns>The document created, or null</returns>
        public override MigraDoc.DocumentObjectModel.Document BuildDocument()
        {
            MigraDoc.DocumentObjectModel.Document retVal = new MigraDoc.DocumentObjectModel.Document();

            retVal.Info.Title   = "EFS Model report";
            retVal.Info.Author  = "ERTMS Solutions";
            retVal.Info.Subject = "Model report";

            DeltaImportReport report = new DeltaImportReport(retVal);

            report.CreateDocument(ImportResult);

            return(retVal);
        }
        /// <summary>
        /// Creates a report on the model, according to user's choices
        /// </summary>
        /// <returns>The document created, or null</returns>
        public override Document BuildDocument()
        {
            Document retVal = new Document();

            Log.Info("Generating model report");
            retVal.Info.Title = "EFS Model report";
            retVal.Info.Author = "ERTMS Solutions";
            retVal.Info.Subject = "Model report";

            DeltaImportReport report = new DeltaImportReport(retVal);
            report.CreateDocument(ImportResult);

            return retVal;
        }
示例#4
0
        /// <summary>
        /// Creates a report on the model, according to user's choices
        /// </summary>
        /// <returns>The document created, or null</returns>
        public override Document BuildDocument()
        {
            Document retVal = new Document();

            Log.Info("Generating model report");
            retVal.Info.Title   = "EFS Model report";
            retVal.Info.Author  = "ERTMS Solutions";
            retVal.Info.Subject = "Model report";

            DeltaImportReport report = new DeltaImportReport(retVal);

            report.CreateDocument(ImportResult);

            return(retVal);
        }