Presentation.SaveDocument(Stream) Method
Saves the presentation to a stream.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.1.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream | A stream to which the presentation should be saved. |
Remarks
The following code snippet saves the created presentation as a PPTX file:
using DevExpress.Docs.Presentation;
namespace PresentationApiSample;
public class Program {
public static void Main(string[] _) {
// Create a presentation
Presentation presentation = new Presentation();
//...
// Populate the presentation with content
//...
// Save the modified presentation to a new PPTX file
FileStream outputStream = new FileStream(@"D:\\resulting-presentation.pptx", FileMode.Create);
presentation.SaveDocument(outputStream);
outputStream.Dispose();
}
}
See Also