public void HideControls()
{
//ExStart
//ExFor:SwfSaveOptions.TopPaneControlFlags
//ExFor:SwfTopPaneControlFlags
//ExFor:SwfSaveOptions.ShowSearch
//ExSummary:Shows how to choose which controls to display in the embedded document viewer.
Document doc = new Document(MyDir + "Document.doc");
// Create an instance of SwfSaveOptions and set some buttons as hidden.
SwfSaveOptions options = new SwfSaveOptions();
// Hide all the buttons with the exception of the page control buttons. Similar flags can be used for the left control pane as well.
options.TopPaneControlFlags = SwfTopPaneControlFlags.HideAll | SwfTopPaneControlFlags.ShowActualSize |
SwfTopPaneControlFlags.ShowFitToWidth | SwfTopPaneControlFlags.ShowFitToHeight |
SwfTopPaneControlFlags.ShowZoomIn | SwfTopPaneControlFlags.ShowZoomOut;
// You can also choose to show or hide the main elements of the viewer. Hide the search control.
options.ShowSearch = false;
//ExEnd
doc.Save(MyDir + @"\Artifacts\SwfSaveOptions.HideControls.swf", options);
}