1

I want include the attachment image directly in data view web part.

I used the below code snippet, it is displayed image name link, but I need to print image here.

<xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> <xsl:attribute name="FieldName">Attachments</xsl:attribute> <xsl:attribute name="Visible">true</xsl:attribute> <xsl:attribute name="ItemId"><xsl:value-of select="@ID"/></xsl:attribute> </xsl:element> 

I tried up to my level but it's not getting displayed.

3
  • I think you need to improve your question to understandCommentedDec 6, 2011 at 8:18
  • Is this a FIS? Can't you just have a link to document and then have the user print at thier own discretion?
    – Josey
    CommentedDec 6, 2011 at 20:26
  • Were you able to find a solution to display the image?
    – user13979
    CommentedJan 8, 2013 at 21:27

1 Answer 1

1

Try assigning the value of what you have already in your question to a variable. Then if the length of that variable is greater than zero you can display whatever image you choose.

1
  • Marc can you elaborate this solution you posted? I would like to show the attachmenets as images. THanksCommentedMay 7, 2012 at 6:33

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.