Code snippet to download the files along with versions from SPS 2003 document library.

1: private void Download() 2: { 3: string siteUrl = txtSite.Text.ToString(); 4: string source = txtDocLib.Text.ToString(); 5: string downloadPath= txtDownload.Text.ToString(); 6: byte[] vContent = null; 7: int count = 1; 8:   9: using (SPSite site = new SPSite(siteUrl)) 10: { 11: using (SPWeb web = site.OpenWeb()) 12: { 13: SPFolder sourceFolder = web.GetFolder(source); 14:…

0

In SPS 2003, Use custom template to create the document workspace through ECB menu link.

In SPS 2003, In the ECB menu of the documents we get an option “Create Document Workspace”. This link uses the OOB document workspace STS#2 to create the document workspace. There was a requirement to use our own custom template to create the document workspace through this ECB menu link. Resolution We started troubleshooting the…

0

Resolution: Search.asmx returns no result for custom query

Search.asmx returns no result (ERROR_NO_RESULTS_FOUND) for custom query.   Cause Search permission settings were required to be properly configured.   Resolution Initially we checked ifilters for PDF document. They were properly installed on the servers. Then we tried to search word document to confirm whether the issue happens with word document too. And we found…

0

How To: SPS 2003: Access the columns from the “manage sites” list of “sites” area

TopologyManager topologyManager = new TopologyManager(); Uri uri = new Uri("<http://terminator:2004>"); PortalSiteCollection sites = topologyManager.PortalSites; PortalContext portalContext = PortalApplication.GetContext(sites[uri]); Guid homeGuid = AreaManager.GetSystemAreaGuid(portalContext, SystemArea.Home); Area homeArea = AreaManager.GetArea(portalContext, homeGuid); AreaCollection subareas = homeArea.Areas; Area keywordArea = subareas["sites"]; SPWeb oweb  = keywordArea.Web; These are the ref., i used for the above code using System; using System.Web; using…

0

How To: Steps to create web services in MOSS 2007

I followed the article http://msdn2.microsoft.com/en-us/library/ms464040.aspx but still I had to do couple of more settings which I have covered here. A. Creating an ASP.NET Web Service in Visual Studio Create a web service project. Add class library project to the Solution(ref. System.Web.Services). Move the service.cs file to class library project. (Please note the Class name…

0