| Introducedin | ||||
|---|---|---|---|---|
|
| Description |
|---|
| Excerpt |
|---|
Saves the generated Word file to a SharePoint List Item. |
| Signature | ||||
|---|---|---|---|---|
| ||||
public static void Save(this WordTemplate template, Microsoft.SharePoint.ListItem listItem, string fileName) |
| Signature | ||||
|---|---|---|---|---|
| ||||
Public Shared Sub Save(ByVal template As WordTemplate, ByVal listItem As Microsoft.SharePoint.ListItem, ByVal fileName As String) |
| Parameters |
|---|
| Param | ||||
|---|---|---|---|---|
| ||||
The current WordTemplate object that is being saved to file |
| Param | ||||
|---|---|---|---|---|
| ||||
SharePoint List Item to which the file is being saved |
| Param | ||||
|---|---|---|---|---|
| ||||
Name of the file to be saved |
| Exceptions |
|---|
| Exception | ||||
|---|---|---|---|---|
| ||||
|
| Remarks | ||
|---|---|---|
You can call Save more than once for a single instance of WordTemplate. This allows you to save more than one copy of a generated file, and/or both save the file on the server and stream it to the client.
|
| Example | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|