sharepoint

Is it feasible to programmatically change the name of a directory in SharePoint?

Hello, To quickly summarise my question: Is it feasible to programmatically change the name of a directory (with both files and sub-folders) in SharePoint? I am expecting that users will have files checked out on at least some occasions what I am attempting the rename. The background: I am currently contracting for a company that pr...

How to use custom CSS with my Sharepoint WebPart?

'ello! I'm developing my first WebPart for Sharepoint, and now I'm wondering where/how to include/store my CSS. Where should I put my .css files? How should I include them in my webpart? ...

Can i host WPF Controls in ASP.net 2.0 or sharepoint ?

This may seem like a high-level question. But that is because I'm unfamiliar with cutting edge ASP.net and even less with this behemoth called Sharepoint. So please bear with me.. First off is it possible to take functional custom WPF controls which contain certain unmanaged subcomponents that do DirectX rendering (for performance reas...

SPFarm.Local.Solutions.Add - Exception - "Access Denied"

Here is my code snippet: SPSecurity.RunWithElevatedPrivileges(delegate() { SPSolution newSolution = SPFarm.Local.Solutions.Add(@fullPath); }); The stacktrace and innerexception give no further clues. The Exception.Source says Microsoft.SharePoint. SPFarm.Local.CurrentUserIsAdministrator() returns TRUE ...

xsl for sharepoint calendar

I need to create a calendar which will join together data from a number of separate sharepoint team calendars (it's so that the press office in my organisation can see what's happening in each department side-by-side on the same page - what they would like is something like the ui for a shared google calendar). I have discovered that I ...

Get Real Title from SharePoint Lists

Hi I am querying the Sharepoint Lists using the Sharepoint Library in .net. I noticed that there is more than one title field. How can I get the user defined title field? SPListItem item = myItemCollection[i]; item["Title"] <- provides me the wrong title field Is this a known issue, any work around? Thanks However if I go into m...

My app edits a file in SharePoint via Web Client/WebDAV(WebDAV redirector). How can I check out/check in?

I'm integrating my application so that it can edit files stored in SharePoint. I'm using the Web Client service AKA WebDAV Redirector(webclnt.dll) which does a wonderful job of letting the normal CreateFile/read/write Windows api calls be redirected from their normal drive I/O path out to the network via WebDAV. However, I can only get...

In sharepoint how can a search be limited to current folder in a doc library?

Hello all, We have a large document library with 3000+ folders. Our customer wants to be able to search within the current folder. Because this document library has a lot of folders creating one scope per folder is out of question. So the question is: How can a search be limited to current folder in a doc library? Thanks ...

SharePoint Form Library: Programmatically or Stsadm command to change content type to custom form template

Hello, I have a custom site definition which includes a form library. I have a form template created in InfoPath. Through SharePoint features I can deploy everything except I cannot figure out how to change the default form for the form library to point to the form I created in InfoPath. I have a feature which deploys the form just g...

SharePoint Preserve Page Properties and WebParts

Hi I was wondering If there is away to save a page in sharepoint. I want to save the default page, and replicate it on a mirror server. I want the web parts in the same place, and the properties of the web parts to stay intact. Any suggestions? Thank you. ...

Moss 2007 Re-Ghost Content Types

Say for example I have Content Type XXX. For some reason it has become unghosted on List A. We have changed the content type in our feature and re-deployed but obviously the content type on List A has not been updated. Is it possible to reghost this content type? ...

High CPU usage when deploying content types via a SharePoint feature

I'm creating a SharePoint feature which will be used to deploy some content types (and their custom columns/ fields) into a a new SharePoint site. I've used an external tool to generate the CAML for the content types (Andrew Connell's custom STSADM commands) but when I put them into the feature and run it I hit a problem. The feature a...

sharepoint content type data driven

I'm creating a new content type for a sharepoint project (MOSS 2007). This content type (Letter Template) needs to contain meta-data that is driven from data outside of sharepoint like, template type (which we define in another db). How can I accomplish this in sp (aside from generating xml files)? ...

Programmatically creating a MOSS publishing page

I'm getting an error when creating a MOSS publishing page (this is a completely clean MOSS install, no site built into it yet). I'm using code which I've found on plenty of blogs, eg: var pubWeb = PublishingWeb.GetPublishingWeb(Site.RootWeb); SPContentTypeId ctId = new SPContentTypeId(contentTypeId); var layouts = pubWeb.GetAvailablePag...

SharePoint 2007 - How To Change Attachment Paperclip Image

When a list item has an attachment, SharePoint automatically renders a paperclip image for that particular row, which indicates that the item has an attachment. Is there any way to change the image that is rendered? The site is in a shared hosting environment, so I can't simply replace the image on the file system. Also, there are other...

Best practices when using Sharepoint as a Scrum communication tool

Right now, our teams are using a combination of a bulletin board and an excel spreadsheet to keep track of tasks and to draw a burndown chart. Backlogs are keep on index cards in envelopes. This works well when the stakeholders are in the same location. However, we will soon have Scrum teams in two geographically distant locations and I...

SharePoint Documentation Images

Not exactly programming per se, but I am looking for some good images for diagraming SharePoint solutions for documentation. The Microsoft white-papers always have good diagrams and I am looking for something that I could use. Either visio shapes or jpeg/gif images would be ideal. Update: See Below http://f5todebug.blogspot.com/2009...

Is it possible to develop for sharepoint using continuous integration techniques?

We are gearing up for some pretty serious Sharepoint(MOSS 2007) development including custom web parts, lists, master pages and layouts etc etc and etc. We are evaluating version control and it seems that the discussion has not got much deeper than that. I am keen that we can easily deploy from the source control to our test and product...

Add New Group - Access Denied error

We have a really strange problem. My userid is a farm administrator and it a site collection admin on the site in question. If I add a new group (to manage permissions), once I click the OK button on the create group page I get thrown to the Error: Access Denied page. Here's the strange part, the group gets created. If I try to add a...

How to get all WebpartZones on a page in Sharepoint 2007?

Is there any way to get all WebPartZones on a given page in MOSS 2007? By iterating over all the Webparts it's possible to get zones with webparts in, but empty Zones won't be included then. Using SPLimitedWebPartManager to get all WebParts on a page. This needs to be done from a Layouts page. ...