Equivalent of Shapes.AddLinkedPicture for Aspose.Words and Aspose.Slides

We use the Shapes.AddLinkedPicture function in Aspose.Cells to add a picture as a URL link into a XLS file:

Aspose.Cells - The Powerful Excel Processing API | Aspose API References

The important thing for us is that the image is rendered from the remote web server. It is important to us that the image is not imported into the XLS file.

What is the equivalent function in Aspose.Words and Aspose.Slides to achieve the same thing in DOC and PPT files?

We are only interested in the Office 97 - 2003 file format. We are only interested in .NET platform.

We have license for Aspose.Total for .NET.
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val=“–”/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

Hi Daniel,

I am Aspose.Slides representative. You can add the similar linked image in Aspose.Slides for .NET as in Aspose.Cells. First you need to add the picture frame shape that will hold the image and then you need set the hyperlink on that shape. You can set the both internal and external hyperlinks with shapes in Aspose.Slides for .NET. Please proceed to this link to see how to add picture in Aspose.Slides and then follow this link to see how to associate the hyperlink with shapes. Please feel free to share if you encounter any issue.

Thanks and Regards,

What is the equivalent method in Aspose.Words for DOC files?

Hi Daniel,

Thanks for your inquiry.

In Aspose.Words this can be set by specifying the Shape.ImageData.SourceFullName property which sets the path of the image you want to link to. Please see the first code snippet on this API page here for an example.

Thanks,

Your instructions for Aspose.Slides did not solve our use-case. We are not interested in creating a URL link that a person looking at the PPT file can click on.

We want to use Aspose.Slides to insert a picture into the PPT file. The source of the picture will be an external URL like www.example.com/images/picture.jpg . The JPG image must render from the external web server.

Note: also see the comment from your Aspose.Words team below. Their response for Aspose.Words was correct and solved our use-case for DOC files.