c# - Programmatically read from library -
i have document library named "xsl library" bunch of xsl's... , need read file (anyone one) there can use transform xml renders webpart... layout out of webpart determined xsl... how can it?
notes: enviroment -> sharepoint 2007
so looks need server side code:
spfile xslfile = spcontext.current.web.getfile("/myweb/myxlslibrary/myxsl.xsl"); stream xslstream = xslfile.openbinarystream();
then code similar 1 provided vlad above make transformation.
see msdn more info on functions used - http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.getfile.aspx , http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.openbinarystream.aspx.
Comments
Post a Comment