Save
Save(string, SaveFormat)
Saves all slides of a presentation to a file with the specified format.
public void Save(string fname, SaveFormat format)
Parameter | Type | Description |
---|
fname | String | Path to the created file. |
format | SaveFormat | Format 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)
Parameter | Type | Description |
---|
stream | Stream | Output stream. |
format | SaveFormat | Format 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)
Parameter | Type | Description |
---|
fname | String | Path to the created file. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional 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)
Parameter | Type | Description |
---|
stream | Stream | Output stream. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Exceptions
exception | condition |
---|
NotSupportedException | If 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)
Parameter | Type | Description |
---|
fname | String | Path to the created file. |
slides | Int32[] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
Exceptions
exception | condition |
---|
ArgumentNullException | When stream or slides parameter is null. |
ArgumentOutOfRangeException | When slides parameter contains wrong page numbers. |
InvalidOperationException | When 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)
Parameter | Type | Description |
---|
fname | String | Path to the created file. |
slides | Int32[] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Exceptions
exception | condition |
---|
ArgumentNullException | When stream or slides parameter is null. |
ArgumentOutOfRangeException | When slides parameter contains wrong page numbers. |
InvalidOperationException | When 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)
Parameter | Type | Description |
---|
stream | Stream | Output stream. |
slides | Int32[] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
Exceptions
exception | condition |
---|
ArgumentNullException | When stream or slides parameter is null. |
ArgumentOutOfRangeException | When slides parameter contains wrong page numbers. |
InvalidOperationException | When 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)
Parameter | Type | Description |
---|
stream | Stream | Output stream. |
slides | Int32[] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Exceptions
exception | condition |
---|
ArgumentNullException | When stream or slides parameter is null. |
ArgumentOutOfRangeException | When slides parameter contains wrong page numbers. |
InvalidOperationException | When 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)
Parameter | Type | Description |
---|
options | IXamlOptions | The 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)
Parameter | Type | Description |
---|
fname | String | The name for the presentation that will appear at the client browser. The name should not contain path. |
format | SaveFormat | Format of the exported data. |
response | HttpResponse | Response object where to save the document. |
showInline | Boolean | True 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)
Parameter | Type | Description |
---|
fname | String | The name for the presentation that will appear at the client browser. The name should not contain path. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
response | HttpResponse | Response object where to save the document. |
showInline | Boolean | True to show an option to open the presentation inside the browser. |
See Also