Presentation Constructor (Stream)

This constructor is the primary mechanism for reading an existing Presentation.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.12.0.0 (21.12)
Syntax
public Presentation(
	Stream stream
)

Parameters

stream
Type: System.IOStream
Input stream.
Examples
[C#]

FileStream fis = new FileStream("demo.pptx", FileMode.Open, FileAccess.Read);
Presentation pres = new Presentation(fis);
fis.Close();

[Visual Basic]

Dim fis As FileStream = New FileStream("demo.pptx", FileMode.Open, FileAccess.Read)
Dim pres As Presentation = New Presentation(fis)
fis.Close()
See Also