OleFormatSuggestedFileName Property

Gets the file name suggested for the current embedded object if you want to save it into a file.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public string SuggestedFileName { get; }

Property Value

Type: String
Examples
Shows how to get suggested file name from the object.
Document doc = new Document(MyDir + "OLE shape.rtf");

// Gets the file name suggested for the current embedded object if you want to save it into a file
Shape oleShape = (Shape) doc.FirstSection.Body.GetChild(NodeType.Shape, 0, true);
string suggestedFileName = oleShape.OleFormat.SuggestedFileName;

Assert.AreEqual("CSV.csv", suggestedFileName);
See Also