Processing OLE Objects -> additional information needed

Hi Aspose Team,

I am currently testing your product(s) and saw that in regard to Visio there is limited support for OLE Objects.

I can use ForeignData to get some basic information about OLE objects but I need option to access OLE Object link information like path + file name (for not embeded objects).

After getting this info I would like to make replacement of object something like:

Search for OLE1.docx, replace with Test.docx

Would this be possible (maybe feature request)?
I am able to achieve similar with other components.

Thanks in advance,
Oliver

Hi Oliver,


Thank you for contacting support. We’re sorry to share with you that it is not supported. We have logged a feature request under ticket id DIAGRAMNET-50332 in our issue tracking system. We’ll let you know once a significant progress has been made in this regard. We’re sorry for the inconvenience caused.

Hi,

do you have any estimate when you will work on this ticket?

Thanks,
Oliver

Hi Oliver,


Thank you for asking about an update. We’re sorry to share with you that the linked issue is pending for analysis and not resoled yet. We have asked the responsible developer to take a look at your issue shortly. We’ll let you know once an update is available from him.

Hi Oliver,


Thank you for being patient. We’ve received a response from our development team. Our development team has plans to resolve this issue in the second quarter of 2015. It’s all depend upon if everything goes by plans. We will let you know once the issue is resolved.

Hi Imran,

as we are now in third quarter of 2015 (almost 4th) any news here?
It is needed for not embedded objects to have access to path + file name properties (get and set).

Thanks,
Oliver

Hi Oliver,


Thank you for the inquiry. We’re sorry to let you know that it is pending and not resolved yet. We have intimated our product team to take a look and provide us the current status. We’ll let you know immediately in the forum thread once we have some significant progress. Please spare us some time and stay tuned.

Hi Imran,

any news regarding DIAGRAMNET-50332?
Hi Oliver,

Thank you for asking about an update. Unfortunately, there is no available news yet. We've intimated our product team to take a look at your issue. We'll keep you posted regarding any available updates.

Hi Oliver,


Thank you for being patient. Our product team has started analyzing this feature. They have plans to incorporate it in the first quarter of 2016. It depends if everything goes by plan.

Hi Oliver,

Thank you for being patient. We have a good news for you that the ticket id DIAGRAMNET-50332 has now been resolved. If there is no issue in the QA phase, then this fix will be incorporated in the next version 6.6.0 of Aspose.Diagram for .NET API. We'll inform you via this forum thread as soon as the new release is published.

Hi Oliver,


Thank you for being patient. In reference to the ticket id DIAGRAMNET-50332, please download and use the latest Hotfix version: Aspose.Diagram for .NET 6.5.1.0. Please also let us know how that goes on your side.
Code example [.NET, C#]
<span style=“color: rgb(0, 128, 0); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>// load a Visio diagram
Diagram diagram = new Diagram(DirPath + “Drawing1.vsdx”);
// get page of the Visio diagram by name
Aspose.Diagram.Page page = diagram.Pages.GetPage(“Page-1”);
// get shape of the Visio diagram by ID
Aspose.Diagram.Shape OLE_Shape = page.Shapes.GetShape(2);

// filter shapes by type Foreign
if (OLE_Shape.Type == Aspose.Diagram.TypeValue.Foreign)
{
if (OLE_Shape.ForeignData.ForeignType == ForeignType.Object)
{
Stream Ole_stream = new MemoryStream(OLE_Shape.ForeignData.ObjectData);
// get format of the OLE file object
Aspose.Words.FileFormatInfo info = Aspose.Words.FileFormatUtil.DetectFileFormat(Ole_stream);
if (info.LoadFormat == Aspose.Words.LoadFormat.Doc || info.LoadFormat == Aspose.Words.LoadFormat.Docx)
{
// modify an OLE object
var doc = new Aspose.Words.Document(new MemoryStream(OLE_Shape.ForeignData.ObjectData));
doc.Range.Replace(“testing”, “Aspose”, false, true);
MemoryStream outStream = new MemoryStream();
doc.Save(outStream, Aspose.Words.SaveFormat.Docx);
// replace an OLE object
OLE_Shape.ForeignData.ObjectData = outStream.ToArray();
}
}
}
// save Visio diagram
diagram.Save(DirPath + “modified.vsdx”, SaveFileFormat.VSDX);

The issues you have found earlier (filed as DIAGRAMNET-50332) have been fixed in Aspose.Diagram for .NET 6.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.