Using the MS Office Interops the code looks like what I have below. How can I accomplish this with Aspose Words? I need to Save the linked imaged with my file, update the file and break the links. Once I can figure this out I am buying the library.
for (int i = 0; i < oWord.Documents[1].InlineShapes.Count; i++)
{
try
{
oWord.Documents[1].InlineShapes[i].LinkFormat.SavePictureWithDocument = true;
oWord.Documents[1].InlineShapes[i].LinkFormat.Update();
oWord.Documents[1].InlineShapes[i].LinkFormat.BreakLink();
}
catch (Exception e)
{
// do nothing…
}
}
Thanks for your inquiry. Could you please attach your input and expected output Word documents here for our reference? We will then provide you more information about your query along with code.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.