Exemplo n.º 1
0
        public WordDoc(string author, string initials)
        {
            Partes      = new List <Parte>();
            Comentarios = new List <Comentario>();

            _stream = new MemoryStream();

            WordDocument = WordprocessingDocument.Create(_stream, WordprocessingDocumentType.Document);

            // Add a main document part.
            MainPart = WordDocument.AddMainDocumentPart();

            // Create the document structure and add some text.
            MainPart.Document = new Document();
            Body = MainPart.Document.AppendChild(new Body());

            _author   = author;
            _initials = initials;

            // SectionProperties SecPro = new SectionProperties();
            // PageSize PSize = new PageSize();
            // PSize.Width = 15000;
            // PSize.Height = 11000;
            // SecPro.Append(PSize);
            // Body.Append(SecPro);
        }