Save

Save(string, SaveFormat)

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

public void Save(string fname, SaveFormat format)
ParameterTypeDescription
fnameStringPath to the created file.
formatSaveFormatFormat of the exported data.

See Also


Save(Stream, SaveFormat)

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

public void Save(Stream stream, SaveFormat format)
ParameterTypeDescription
streamStreamOutput stream.
formatSaveFormatFormat of the exported data.

See Also


Save(string, SaveFormat, ISaveOptions)

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

public void Save(string fname, SaveFormat format, ISaveOptions options)
ParameterTypeDescription
fnameStringPath to the created file.
formatSaveFormatFormat of the exported data.
optionsISaveOptionsAdditional format options.

See Also


Save(Stream, SaveFormat, ISaveOptions)

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

public void Save(Stream stream, SaveFormat format, ISaveOptions options)
ParameterTypeDescription
streamStreamOutput stream.
formatSaveFormatFormat of the exported data.
optionsISaveOptionsAdditional format options.

Exceptions

exceptioncondition
NotSupportedExceptionIf you try to save encrypted file in none Office 2007-2010 format

See Also


Save(string, int[], SaveFormat)

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

public void Save(string fname, int[] slides, SaveFormat format)
ParameterTypeDescription
fnameStringPath to the created file.
slidesInt32[]Array with slide positions, starting from 1.
formatSaveFormatFormat of the exported data.

Exceptions

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

See Also


Save(string, int[], SaveFormat, ISaveOptions)

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

public void Save(string fname, int[] slides, SaveFormat format, ISaveOptions options)
ParameterTypeDescription
fnameStringPath to the created file.
slidesInt32[]Array with slide positions, starting from 1.
formatSaveFormatFormat of the exported data.
optionsISaveOptionsAdditional format options.

Exceptions

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

See Also


Save(Stream, int[], SaveFormat)

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

public void Save(Stream stream, int[] slides, SaveFormat format)
ParameterTypeDescription
streamStreamOutput stream.
slidesInt32[]Array with slide positions, starting from 1.
formatSaveFormatFormat of the exported data.

Exceptions

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

See Also


Save(Stream, int[], SaveFormat, ISaveOptions)

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

public void Save(Stream stream, int[] slides, SaveFormat format, ISaveOptions options)
ParameterTypeDescription
streamStreamOutput stream.
slidesInt32[]Array with slide positions, starting from 1.
formatSaveFormatFormat of the exported data.
optionsISaveOptionsAdditional format options.

Exceptions

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

See Also


Save(IXamlOptions)

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

public void Save(IXamlOptions options)
ParameterTypeDescription
optionsIXamlOptionsThe XAML format options.

Examples

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
	pres.Save(new XamlOptions { ExportHiddenSlides = true });
}

See Also


Save(string, SaveFormat, HttpResponse, bool)

Sends the presentation to the client browser. This method is absent in ClientProfile versions of Aspose.Slide.

public void Save(string fname, SaveFormat format, HttpResponse response, bool showInline)
ParameterTypeDescription
fnameStringThe name for the presentation that will appear at the client browser. The name should not contain path.
formatSaveFormatFormat of the exported data.
responseHttpResponseResponse object where to save the document.
showInlineBooleanTrue to show an option to open the presentation inside the browser.

See Also


Save(string, SaveFormat, ISaveOptions, HttpResponse, bool)

Sends the presentation to the client browser. This method is absent in ClientProfile versions of Aspose.Slide.

public void Save(string fname, SaveFormat format, ISaveOptions options, HttpResponse response, 
    bool showInline)
ParameterTypeDescription
fnameStringThe name for the presentation that will appear at the client browser. The name should not contain path.
formatSaveFormatFormat of the exported data.
optionsISaveOptionsAdditional format options.
responseHttpResponseResponse object where to save the document.
showInlineBooleanTrue to show an option to open the presentation inside the browser.

See Also