Save
IPresentation.Save method (1 of 9)
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
IPresentation.Save method (2 of 9)
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
IPresentation.Save method (3 of 9)
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
IPresentation.Save method (4 of 9)
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
IPresentation.Save method (5 of 9)
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
IPresentation.Save method (6 of 9)
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
IPresentation.Save method (7 of 9)
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
IPresentation.Save method (8 of 9)
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
IPresentation.Save method (9 of 9)
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