예제 #1
0
        /// <summary>
        /// Create a new DocumentEntry; the data will be provided later
        /// </summary>
        /// <param name="name">the name of the new DocumentEntry</param>
        /// <param name="size">the size of the new DocumentEntry</param>
        /// <param name="beforewriting"></param>
        /// <returns>the new DocumentEntry</returns>
        public DocumentEntry CreateDocument(String name, int size,
                                            POIFSWriterEventHandler beforewriting)
        {
            POIFSDocument document = new POIFSDocument(name, size, _path);

            document.BeforeWriting += beforewriting;
            return(CreateDocument(document));
        }
예제 #2
0
 /// <summary>
 /// Create a new DocumentEntry; the data will be provided later
 /// </summary>
 /// <param name="name">the name of the new DocumentEntry</param>
 /// <param name="size">the size of the new DocumentEntry</param>
 /// <param name="beforewriting"></param>
 /// <returns>the new DocumentEntry</returns>
 public DocumentEntry CreateDocument(String name, int size,
                                     POIFSWriterEventHandler beforewriting)
 {
     POIFSDocument document = new POIFSDocument(name, size, _path);
     document.BeforeWriting += beforewriting;
     return CreateDocument(document);
 }
예제 #3
0
 /// <summary>
 /// Create a new DocumentEntry in the root entry; the data will be
 /// provided later
 /// </summary>
 /// <param name="name">the name of the new DocumentEntry</param>
 /// <param name="size">the size of the new DocumentEntry</param>
 /// <param name="writer">the Writer of the new DocumentEntry</param>
 /// <returns>the new DocumentEntry</returns>
 public DocumentEntry CreateDocument(String name, int size,
                                     POIFSWriterEventHandler writer)
 {
     return this.Root.CreateDocument(name, size, writer);
 }
예제 #4
0
 /// <summary>
 /// Create a new DocumentEntry in the root entry; the data will be
 /// provided later
 /// </summary>
 /// <param name="name">the name of the new DocumentEntry</param>
 /// <param name="size">the size of the new DocumentEntry</param>
 /// <param name="writer">the Writer of the new DocumentEntry</param>
 /// <returns>the new DocumentEntry</returns>
 public DocumentEntry CreateDocument(String name, int size,
                                     POIFSWriterEventHandler writer)
 {
     return(this.Root.CreateDocument(name, size, writer));
 }