|
Chrissy Blanco Profile |
|
| Blog Title |
El Blanco's Office 2007 Blog |
| Blog Description |
A large amount of my professional time is spent developing solutions based on Microsoft SharePoint Server 2003 (SPS 2003) and more recently Microsoft Office SharePoint Server 2007 (MOSS 2007) which I've been using since beta1 timescales.
This is a blog where I will share interesting technical findings about these technologies (even though most postings will be based on MOSS) which I hope other developers and techies will find useful. |
| Blog URL |
http://chrissyblanco.blogspot.com |
| RSS Feed |
http://chrissyblanco.blogspot.com/feeds/posts/default?alt=rss |
| Validate Feed |
Validate this feed: feedvalidator.org or validator.w3.org |
| Feed Last Checked |
Jul 30, 2010 11:06:36 AM EST. |
| Realtime Update |
|
| Landed Here |
Jun 06, 2008 |
| Location |
|
| Posts: # / 1st / Latest |
25 - Jul 12, 2007 - Jul 29, 2009 |
| Total Hits |
44 |
|
Update: ItemCheckingIn Event and Detecting a Major Document Version
Chrissy Blanco span xmlns=""pIn my a href="http://chrissyblanco.blogspot.com/2009/07/interrogate-document-version-within.html"last post/a I detailed a problem where within the ItemCheckingIn event receiver I couldn't determine whether the document was being checked in as a major or a minor version and this was causing me big problems. I posted on the a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1c036e6e-2d6a-4e7b-97b5-d0d2545d7197"MSDN forums/a and Aaron Han from Microsoft [read]. Posted: Wed, Jul 29th '09 |
Interrogate the Document Version within the ItemCheckingIn Event Receiver?
Chrissy Blanco span xmlns=""pI've added an event receiver to a content type, and I've overridden the span style="font-family:Courier;font-size:10;"ItemCheckingIn/span event. My scenario is that if the document is being checked in as a Major version (i.e. x dot zero) then unless it fulfils some other criteria I want to prevent the check in from occurring (i.e. set the span style="font-family:Courier;font-size:10;"properties.Cancel/span property to true, and set the span style="font-family:Courier;font-size:10;" [read]. Posted: Mon, Jul 20th '09 |
ASP.NET Unit Testing
Chrissy Blanco Unit Testing ASP.NET? ASP.NET unit testing has never been this easy. Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle - and for the launch will be giving out FREE licenses to bloggers and their readers. The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on for ASP.NET unit testing, for a bargain price. Typemock Isolator is a leading .NET unit testing tool (C# and VB [read]. Posted: Tue, May 19th '09 |
The BlancoWorld Workflow Reporting Feature
Chrissy Blanco It's been a while since my last blog post because I've been extremely busy in SharePoint land with my job and finding spare time to write blog posts or work on useful add-ons has been very hard indeed. However, over the last few weeks in the spare few minutes I manage to grab here and there I've been working on another add-on that hopefully some people will find useful. A fair few clients I work with have asked the question "how can I report on the workflows that are running or have completed [read]. Posted: Fri, Oct 31st '08 |
MOSS Licensing / General Microsoft Licensing Questions ?
Chrissy Blanco I don't know how many people know about this blog, I certainly didn't, but Lady Licensing's blog covers most things people ask about Microsoft Licensing. She has a recent post on MOSS licensing which may answer a few questions for people. Check it out to answer all of your MS licensing questions J [read]. Posted: Fri, Jul 4th '08 |
Adding a SharePoint Site Picker to a _layouts Page
Chrissy Blanco I've come across this scenario of a few times . . . you're implementing an application page that sets up some configuration for a SharePoint application you're developing. As part of this configuration, you need your end-user to enter a site from the current site collection. You could just put a text box on your _layout page and let them enter the URL to the site, perhaps adding some server-side validation to ensure that the URL the user entered corresponds to an actual site. A more user friendl [read]. Posted: Thu, Jul 3rd '08 |
My Fist Developer Feature: The BlancoWorld Notification Framework
Chrissy Blanco A Call for Beta Testers . . . Have you ever had a list with a date/time column (e.g. a column called "Review Date") and you wanted some custom notification functionality to execute 'x' days prior to the date, on the actual date, or 'y' days after the date for each list item in the list? Are you sick of developing SPJobDefinition classes that simply trawl lists within site collections and implement some custom functionality when a date on that list has expired? Welcome to the BlancoWorld Notifica [read]. Posted: Thu, Jun 26th '08 |
Checking if a Workflow is Running on an Item / SPWorkflowState
Chrissy Blanco span xmlns=""pI needed to write some code that checked whether or not a workflow was running on a span style="font-family:Courier New;font-size:10;"SPListItem/span. At first I came up with the following:br //ppspan style="font-family:Courier New;font-size:10;"SPListItem item = ...;br//spanspan style="font-family:Courier New;font-size:10;"foreach (SPWorkflow wf in item.Workflows)br//spanspan style="font-family:Courier New;font-size:10;"{br//spanspan style="font-family:Courier New;font-size:10;"nb [read]. Posted: Wed, May 7th '08 |
SharePoint Search Crawl Rules
Chrissy Blanco span xmlns=""pWhen performing a search in SharePoint you often find you get noisy results where not only will it return the document you searched for, but it will also return the view and edit properties pages, the AllItems.aspx view form etc.br //ppTo prevent these from being returned you need to update the crawl rules. To do this follow the steps below:br //polliOpen the Crawl Rules section of the Search Settings in the SSP admin site.br //lilidivAdd crawl rules to exclude the following paths: [read]. Posted: Tue, Apr 15th '08 |
You Can’t Remove an Item from the SPPropertyBag
Chrissy Blanco span xmlns=""pHopefully as most of us know by now, the SPWeb class has a property called "Properties" which returns an object of type SPPropertyBag. This is effectively a class sub-classed from the StringDictionary class, and the collection is persisted in the SharePoint content database making it an ideal location to store any custom web-based properties you need to persist.br //ppTo store something in the property bag for a web is very easy indeed:br //ppSPWeb web = . . . .br /web.Properties.A [read]. Posted: Mon, Mar 17th '08 |
TFS Source Control Comparisons and Whitespace
Chrissy Blanco span xmlns=""pNot a usual post about SharePoint or Office, but something that I hope may help some people who find the same issue I did with TFS. I found a problem today with Team Foundation Server (TFS) when trying to compare some changes I had made against the latest version held within source control – by default it appears as if TFS uses diffmerge.exe and passes the /ignorespace option which means that changes that consist solely of whitespace are ignored and the files are deemed to be ide [read]. Posted: Tue, Mar 11th '08 |
Another Bug with a CustomAction in the Actions Menu
Chrissy Blanco span xmlns=""pspan style="font-family:Arial;font-size:10;"I have found another bug with a CustomAction element which adds an item to the Actions menu on a document library:br //span/ppspan style="font-size:10;"span style="font-family:Courier New;"lt;CustomAction Id="SomeCustomAction"br /RegistrationType="List"br /RegistrationId="101"br /GroupId="ActionsMenu"br /Location="Microsoft.SharePoint.StandardMenu"br /Sequence="1000"br /Title="Some Custom Action"br /Description="Does something interesting [read]. Posted: Tue, Mar 11th '08 |
A Bug with CustomAction in the Actions Menu
Chrissy Blanco span xmlns=""pstrongemspan style="color:#ff0000;"UPDATE 06-05-08: span style="color:#000000;"Check out a a href="http://blog.thekid.me.uk/archive/2008/04/29/sharepoint-custom-actions-in-a-list-view-webpart.aspx"posting by The Kid/a who describes how to get around this issue using a web control instead of the UrlAction element. /span/span/em/strong/ppstrongemspan style="color:#000000;"span style="color:#ff0000;"UPDATE 12-12-07:/span I downloaded/span and installed a href="http://www.microsoft.com [read]. Posted: Mon, Dec 10th '07 |
WCM Sites, Master Pages, and the Search Icon
Chrissy Blanco span xmlns=""If you have a publishing site then there are a few site master pages available to you out of the box:br /br //spanspan xmlns=""/spanspan xmlns=""/spanspan xmlns=""ullidefault.master /liliBlueBand.master /liliBlackBand.master /liliBlueGlassBand.master /liliBlueVertical.master /liliBlackVertical.master /liliBlueTabs.master /liliOrangeSingleLevel.master /liliBlackSingleLevel.master /li/ulpThese all offer a slightly different look and feel, giving us developers a starting point from whi [read]. Posted: Wed, Nov 28th '07 |
A Little Teaser and a Colour Calendar
Chrissy Blanco span xmlns=""pSorry for not posting for a while, but been mega busy with work and other stuff. However, I am working on something a little special which has been bugging me for a fair while, so stay tuned for an update (hopefully in the near future !).br //ppDon't know if anyone has seen this or not, but this is something most people want / ask for when deploying SharePoint (at least in my experience) – a colour calendar i.e. a calendar where it is possible to colour code entries based on cert [read]. Posted: Wed, Nov 21st '07 |
An Issue with SPLongOperation
Chrissy Blanco span xmlns=""pTwo posts in one day ?! Not like me normally, but this one has been BUGGING me for absolutely ages and I've just solved it, so thought I'd share the solution here and now in case this had been bugging anyone else the same way it's been bugging me . . .br //ppAs most of you know, if you have some functionality on an application page that takes a while to execute you can wrap the functionality inside an span style="font-family:Courier New;font-size:10;"SPLongOperation/span as shown b [read]. Posted: Thu, Sep 13th '07 |
Programmatically Activating an InfoPath Form Template
Chrissy Blanco span xmlns=""pA colleague today asked me whether it was possible to programatically activate an InfoPath form template from the form templates store in Central Administration to a site collection. After much digging around in the MOSS SDK I couldn't really find anything until I stumbled across the forms services SDK online. Using a combination of the two I came up with the following which shows how to do this:br //ppFirstly you'll need to add a reference to the span style="font-family:Courier Ne [read]. Posted: Thu, Sep 13th '07 |
New Release of the Event Receivers Manager
Chrissy Blanco span xmlns=""pThanks to everyone who has sent me comments. Today I've uploaded v1.1 of the Event Receivers Manager to my CodePlex site (a href="http://www.codeplex.com/elblanco"http://www.codeplex.com/elblanco/a) which fixes the issues related to the breadcrumb controls on the application pages. I'd like to thank a href="http://www.u2u.info/Blogs/karine/default.aspx"Karine Bosch/a of a href="http://www.u2u.info/"U2U/a for helping me out with this by sending me sample code and pointing me to a us [read]. Posted: Tue, Sep 4th '07 |
Event Receiver Management
Chrissy Blanco divdivspan xmlns=""pOne of the things from SPS 2003 that didn't make it into MOSS 2007 was a way, via the UI, to specify an event receiver for a document library. This seems bizarre considering the facts that you can now have multiple event receivers for a single document library, and you can now have event receivers on lists as well as document libraries.br //ppTo get around this I've developed the "Event Receivers Manager" solution, which I've uploaded to CodePlex (a href="http://www.codeplex. [read]. Posted: Fri, Aug 31st '07 |
Adding a Picker to the “Send to - Other Location” Menu Option
Chrissy Blanco span xmlns=""pA colleague of mine and right-on SharePoint dude, Mark Wilson, has posted an entry on how to add a picker to the page that is displayed when you select the "Send To -gt; Other Location" option from the ECB menu.br //ppPersonally I think this is great as it's a big PITA to have to type the URL to the destination library manually.br //ppCheck it out a href="http://planetwilson.blogspot.com/2007/08/how-to-add-picker-to-send-to-other.html"here/a. /p/spandiv class="blogger-post-footer"i [read]. Posted: Fri, Aug 31st '07 |
Adding the 12 hive to VS.NET File Dialogs
Chrissy Blanco span xmlns=""divThis is something that has bugged me for ages but I've never got around to finding the time to look at it - wouldn't it be nice to have a shortcut to the 12 hive in the left-hand shortcuts panel in the Open, Save, Add New Item etc. dialogs in VS.NET – I know I'd like it !! Kudos to my new colleague Stephen Kaye for taking the time to find out how to do it.br //divulliOpen Word and click on File -gt; Open to display the Open File dialog.br //liliNavigate to the 12 hive.br //lili [read]. Posted: Fri, Aug 24th '07 |
Cancelling a Running Workflow Programatically
Chrissy Blanco span xmlns=""br /pI got asked recently how to cancel a running workflow, so I thought I'd post the solution here for everyone . . .br //pbr /pThe first step is to get an instance of the SPWorkflow object that represents the workflow that is running on the SPListItem in question. This can be performed as follows:br //pbr /pspan style="font-family:Courier New;"span style="color:blue;"foreach/span (span style="color:#2b91af;"SPWorkflow/span wf span style="color:blue;"in/span listItem.Workflows)br / [read]. Posted: Wed, Aug 8th '07 |
SharePoint Calculated Columns with Dates
Chrissy Blanco span xmlns=""pI recently had a request to create a view on a list and group the view by the year and quarter of a particular date. i.e. the list in question has a date column, say "Start Date", and the view should be grouped by the year of the date e.g. 2007, and then by the quarter i.e. 1, 2, 3, or 4 depending on the month.br //ppI did this by creating two new calculated columns on the list. The first column is called "Year", is of type "Single line of text", and has the formula shown below:br [read]. Posted: Mon, Jul 16th '07 |
Determining Whether a User is a Member of a SharePoint Group or Not . . .
Chrissy Blanco span xmlns=""br /pBy using the SPUser.Groups property you can easily enumerate the groups that a user has been assigned to. However one problem with this approach is that if the user is a member of a domain group that has been allocated to a SharePoint group, then this group does not appear in SPUser.Groups. e.g. say that a user account is assigned to SharePoint groups SP1, SP2 and SP3 and that the user is a member of an AD group, ADGroup1, which in turn is assigned to SharePoint group SP4. When [read]. Posted: Fri, Jul 13th '07 |
Office 2003 an 2007 Client Co-existence Problems
Chrissy Blanco I came accross a problem a while ago where IE crashed when trying to select "Edit in Microsoft Office Word" from a document's context menu in a document library. It turned out that this was related to the fact that I had Office 2007 Professional installed, but also had Project 2003 installed i.e. a co-existence problem with the 2003 and 2007 versions of the Office client apps.br /br /I managed to get around this problem by renaming the owssupp.dll located in C:\Program Files\Microsoft Office\Off [read]. Posted: Thu, Jul 12th '07 |