Bookmark.ExportFragment Method (String, WdSaveFormat)

 

Exports the Bookmark to a document for use as a document fragment.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void ExportFragment(
	string FileName,
	WdSaveFormat Format
)

Parameters

FileName
Type: System.String

The full path of the file in which to save the document fragment.

Format
Type: Microsoft.Office.Interop.Word.WdSaveFormat

One of the Microsoft.Office.Interop.Word.WdSaveFormat values that specifies the file format of the document fragment file. You can save a document fragment in any format that Microsoft Office Word supports.

Return to top
Show: