When embedding ole object in to a document the [IconCaption] is not being set on OleFormat object. Is there a workaround?
var doc = new Aspose.Words.Document();
var builder = new DocumentBuilder(doc);
foreach(var file in Directory.GetFiles(“C:\Downloads”))
var icon = Icon.ExtractAssociatedIcon(file);
var ext = Path.GetExtension(file).ToLower();
var progid = “Package”;
progid = “Excel.Sheet.8”;
progid = “Excel.Sheet.12”;
progid = “Package”;
progid = “Word.Document.8”;
progid = “Word.Document.12”;
using(var bmp = icon.ToBitmap())
var shape = builder.InsertOleObject(file, false, true, bmp);
for your inquiry. Unfortunately, Aspose.Words does not support the
requested feature at the moment. However, I have logged this
feature request as WORDSNET-11833 in our issue tracking system. You will be notified via this forum thread once this feature is available.
We apologize for your inconvenience.