Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Saves the PowerPointTemplate to disk. The location is specified by the filename parameter.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Saves the PowerPointTemplate to disk. The location is specified by the {{filename}} parameter.{excerpt}

{signature:C#}
	public void Save(System.String filename)
Signature
{signature}
{signature:vb.net
vb.net
}
	Public Sub ApplyStyle(ByVal filename As String)
Parameters

...

Specifies a complete path and file name for the generated file. PowerPointWriter will save the file to this location. If a file with the same name exists, it will be overwritten by the new PowerPoint file.

Exceptions

...

Save will throw this exception if null or the empty string (C#) is passed to the method.

...

Save will throw this exception if it does not have a PowerPoint document handle (Save cannot be called before Open).

Remarks

You can call Save more than once for a single instance of PowerPointTemplate. This allows you to save more than one copy of a generated files, and/or both save the file on the server and stream it to the client.

{signature}

{parameters}{param:filename}
		Specifies a complete path and file name for the generated file. PowerPointWriter will save the file to this location. If a file with the same name exists, it will be overwritten by the new PowerPoint file.
	{param}

{exceptions}{exception:ArgumentException}
		{{Save}} will throw this exception if {{null}} or the empty string \(C\#\) is passed to the method.
	{exception}{exception:InvalidOperationException}
		{{Save}} will throw this exception if it does not have a PowerPoint document handle ({{Save}} cannot be called before {{Open}}).
	{exception}

{remarks}
You can call [Save|PowerPointTemplate.Save()] more than once for a single instance of [PowerPointTemplate].  This allows you to save more than one copy of a generated files, and/or both save the file on the server and stream it to the client.
{remarks}

{example}
	{code:csharp|title=C#}

	//--- Save a .pptx file
	ppTemplate.Save(@"C:\Reports\Presentation.pptx");

	
{code}
	{code:vbnet|title=vb.net
}

	//--- Save a .pptx file
	ppTemplate.Save("C:\Reports\Presentation.pptx")

	{code}
{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle