Skip to main content

WSS Demo

Go Search
WSS Demo
Blog
Wiki
SharePoint, MOSS & WSS Resource Links
Fantastic 40 Templates
MOSS End User Training
  
WSS Demo > SharePoint > tiff-data-view-preview  


Site By: Ian Morrish
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Hosted By:
Intergen
 Runtime Page Optimizer

SharePoint Picture Libraries create thumbnail and preview jpeg images from Tiff files.

To render the preview image in a Data View, add the following after the <xsl:stylesheet line near the top of the web part

                <xsl:param name="HttpHost" />

Then to display the preview image in the rowview template, use

<td class="ms-vb">

<xsl:variable name="PreviewURL" select="concat($HttpHost, ddwrt:UrlDirName(string(@FileRef)),'/_w/',ddwrt:UrlBaseName(concat($HttpHost, @FileRef)),'_', ddwrt:GetFileExtension(concat($HttpHost, @FileRef)),'.jpg')" />

<img src="{$PreviewURL}" />
</td>

Tiff images in this demo came from http://users.ugent.be/~avierstr/ and are stored in this library http://www.wssdemo.com/tiff

 Tiff files displayed using the Data View web part

LinkFilenameTitle
18S.tiff
align1.tiff
assembling.tiff
DNA.tiff
DNAgel.tiff
dNTP.tiff
PCR2.tiff
PCRgel.tiff
treeterm.tiff
Comment on this page...