Novacode.DocX.SaveAs C# (CSharp) Method

SaveAs() public method

Save this document to a Stream.
public SaveAs ( Stream stream ) : void
stream Stream The Stream to save this document to.
return void
        public void SaveAs(Stream stream)
        {
            filename = null;
            this.stream = stream;
            Save();
        }

Same methods

DocX::SaveAs ( string filename ) : void

Usage Example

Example #1
0
 /// <summary>
 /// Start with filename
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="defaultModules"></param>
 public TemplBuilder(string filename, bool defaultModules = true)
     : this(defaultModules)
 {
     Doc = DocX.Load(filename);
     Doc.SaveAs(Stream);
     Filename = filename;
 }
All Usage Examples Of Novacode.DocX::SaveAs