Save()

IPresentation::Save(System::String, Export::SaveFormat) method

Saves all slides of a presentation to a file with the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::String fname, Export::SaveFormat format)=0

Arguments

ParameterTypeDescription
fnameSystem::StringPath to the created file.
formatExport::SaveFormatFormat of the exported data.

IPresentation::Save(System::SharedPtr<System::IO::Stream>, Export::SaveFormat) method

Saves all slides of a presentation to a stream in the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::SharedPtr<System::IO::Stream> stream, Export::SaveFormat format)=0

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Output stream.
formatExport::SaveFormatFormat of the exported data.

IPresentation::Save(System::String, Export::SaveFormat, System::SharedPtr<Export::ISaveOptions>) method

Saves all slides of a presentation to a file with the specified format and with additional options.

virtual void Aspose::Slides::IPresentation::Save(System::String fname, Export::SaveFormat format, System::SharedPtr<Export::ISaveOptions> options)=0

Arguments

ParameterTypeDescription
fnameSystem::StringPath to the created file.
formatExport::SaveFormatFormat of the exported data.
optionsSystem::SharedPtr<Export::ISaveOptions>Additional format options.

IPresentation::Save(System::SharedPtr<System::IO::Stream>, Export::SaveFormat, System::SharedPtr<Export::ISaveOptions>) method

Saves all slides of a presentation to a stream in the specified format and with additional options.

virtual void Aspose::Slides::IPresentation::Save(System::SharedPtr<System::IO::Stream> stream, Export::SaveFormat format, System::SharedPtr<Export::ISaveOptions> options)=0

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Output stream.
formatExport::SaveFormatFormat of the exported data.
optionsSystem::SharedPtr<Export::ISaveOptions>Additional format options.

Exceptions

ExceptionDescription
System::NotSupportedExceptionIf you try to save encrypted file in none Office 2007-2010 format

IPresentation::Save(System::String, System::ArrayPtr<int32_t>, Export::SaveFormat) method

Saves specified slides of a presentation to a file with the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::String fname, System::ArrayPtr<int32_t> slides, Export::SaveFormat format)=0

Arguments

ParameterTypeDescription
fnameSystem::StringPath to the created file.
slidesSystem::ArrayPtr<int32_t>Array with slide positions, starting from 1.
formatExport::SaveFormatFormat of the exported data.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionWhen stream or slides parameter is null.
System::ArgumentOutOfRangeExceptionWhen slides parameter contains wrong page numbers.
System::InvalidOperationExceptionWhen an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.

IPresentation::Save(System::String, System::ArrayPtr<int32_t>, Export::SaveFormat, System::SharedPtr<Export::ISaveOptions>) method

Saves specified slides of a presentation to a file with the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::String fname, System::ArrayPtr<int32_t> slides, Export::SaveFormat format, System::SharedPtr<Export::ISaveOptions> options)=0

Arguments

ParameterTypeDescription
fnameSystem::StringPath to the created file.
slidesSystem::ArrayPtr<int32_t>Array with slide positions, starting from 1.
formatExport::SaveFormatFormat of the exported data.
optionsSystem::SharedPtr<Export::ISaveOptions>Additional format options.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionWhen stream or slides parameter is null.
System::ArgumentOutOfRangeExceptionWhen slides parameter contains wrong page numbers.
System::InvalidOperationExceptionWhen an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.

IPresentation::Save(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<int32_t>, Export::SaveFormat) method

Saves specified slides of a presentation to a stream in the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::SharedPtr<System::IO::Stream> stream, System::ArrayPtr<int32_t> slides, Export::SaveFormat format)=0

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Output stream.
slidesSystem::ArrayPtr<int32_t>Array with slide positions, starting from 1.
formatExport::SaveFormatFormat of the exported data.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionWhen stream or slides parameter is null.
System::ArgumentOutOfRangeExceptionWhen slides parameter contains wrong page numbers.
System::InvalidOperationExceptionWhen an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.

IPresentation::Save(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<int32_t>, Export::SaveFormat, System::SharedPtr<Export::ISaveOptions>) method

Saves specified slides of a presentation to a stream in the specified format.

virtual void Aspose::Slides::IPresentation::Save(System::SharedPtr<System::IO::Stream> stream, System::ArrayPtr<int32_t> slides, Export::SaveFormat format, System::SharedPtr<Export::ISaveOptions> options)=0

Arguments

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Output stream.
slidesSystem::ArrayPtr<int32_t>Array with slide positions, starting from 1.
formatExport::SaveFormatFormat of the exported data.
optionsSystem::SharedPtr<Export::ISaveOptions>Additional format options.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionWhen stream or slides parameter is null.
System::ArgumentOutOfRangeExceptionWhen slides parameter contains wrong page numbers.
System::InvalidOperationExceptionWhen an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.

IPresentation::Save(System::SharedPtr<Export::Xaml::IXamlOptions>) method

Saves all slides of a presentation to a set of files representing XAML markup.

virtual void Aspose::Slides::IPresentation::Save(System::SharedPtr<Export::Xaml::IXamlOptions> options)=0

Arguments

ParameterTypeDescription
optionsSystem::SharedPtr<Export::Xaml::IXamlOptions>The XAML format options.

Remarks

auto pres = System::MakeObject<Presentation>(u"pres.pptx");

SharedPtr<IXamlOptions> options = System::MakeObject<XamlOptions>();
options->set_ExportHiddenSlides(true);

pres->Save(options);

See Also