Contents tagged with Downloads

  • Announcing new Visual Studio 2012 tool for JavaScript Localization in SharePoint 2013

    Tags: SharePoint 2013, Visual Studio, Downloads

    In SharePoint 2013 JavaScript is the new default language and all our (at least mine) solutions and projects are using JavaScript more and more, even though everything is not built as SharePoint Apps. Farm or Full-trust solutions built using JavaScript will in many situations create a better user interface and an improved perceived performance. The more we build user interfaces using JavaScript we cannot just forget about some of the basic UX rules, such as using localization. End-users really hate when they see mixed content in different languages. We’ve known for quite some time how to do localization server-side, but how do we do it in a smart way in JavaScript?

    Localization in JavaScript

    As always when it comes to cool stuff my mate Waldek Mastykarz already covered this topic pretty well in his post called “Globalizing JavaScript in SharePoint 2013”. In that blog post he shows how you actually can use a feature in SharePoint 2013 that allows you to get JavaScript objects, generated from RESX files, to localize the user interface. His guide pretty well covers everything you need, but I’m going to re-iterate some of it here anyways, and here is a sample on how to do it.

    Assume that you have a resource file (RESX) in your solution in a SharePoint Mapped folder (to the Resources folder). By adding a script link to the ScriptResx.ashx HTTP Handler with the resource file name and the culture as parameters you can get all the resources as a JavaScript object. For instance a simple Hello World alert in a Visual Web Part could looks something like this.

    First of all we need a resource file in the project (mapped to the Resources folder) and if you want localization, you of course have to translate it. This Resource file contains only one resource called HelloWorld.

    A Resource file

    To use this resource in JavaScript I have to write some code to load the ScriptResx.ashx HTTP Handler and pass in the name of the resource file and the name of the current culture.

    SP.SOD.executeOrDelayUntilScriptLoaded(function () {
        "/_layouts/15/ScriptResx.ashx?name=demoresources&culture=" + 
      SP.SOD.executeFunc("demoresources", 'Res', function () {
    }, "strings.js");

    In the sample above I use the Script-On-Demand (SOD) JavaScript functions to first make sure that the Strings.js is properly loaded. I need that to get the name of the current culture (String.STS.L_CurrentUICulture_Name). Then I do a SOD registration and registers the script link for the ScriptResx.ashx file using the name of the RESX file and the name of the culture. Finally I wait for the SOD to load and then shows an alert using the Res.helloWorld object.

    The ScriptResx.ashx file automatically creates a JavaScript object called Res and that object contains strings of all the resources in the RESX file. Note that the resources are using Camel Casing.

    What is the problem with this approach?

    This works fantastically great in most cases, and it is extremely hard to find anything on Waldeks posts that can be improved, but what if you don’t want to use the default namespace Res? It could be a matter of taste or a collision in names from different resource files. Fortunately there is a solution to this built into the ScriptResx.ashx HTTP Handler. You can actually specify two resheader elements in the Resource file to indicate that you want a custom namespace and the name of it – and this is exactly what SharePoint 2013 do for some of the built-in resource files.

    <resheader name="scriptResx">
    <resheader name="classFullName">

    The resheader with the scriptResx name attribute tells the ScriptResx.ashx handler that we would like to generate vanity namespaces and the one with the classFullName name attribute tells the handler the namespace to use.

    Unfortunately Visual Studio (not really, but the .NET ResXResourceWriter) does not handle this at all, as soon as you save your RESX file these two resheader elements will be removed. (And this is where I felt challenged!)

    SPResX to the rescue!

    To handle this situation and to be able to use custom namespaces for my JavaScript localizations I’ve created a small tool called SPResX that replaces the default RESX Custom Tool, the ResXFileCodeGenerator, and correctly preserves the resheader attributes.

    The SPResX tool can be downloaded from the Visual Studio Gallery and installed on any Visual Studio 2012 system, or found in the Extensions and updates in Visual Studio.

    SPResX in the Extension gallery

    Once you have the tool installed you just need to change the Custom Tool to SPResX and save you Resource files. You need to do this on all resource files, including the different language and region variants. Now you will get a namespace that corresponds to your default project namespace. For instance if I have a project called Wictor.WebParts, the namespace will be Wictor.WebParts.Resources (since it is in the Resources folder). If you would like some namespace that is completely different, then you can just specify that namespace in the Custom Tool Namespace. (Yes, I know you will get a notification that the file has to be reloaded – that is just the way it is).

    Configure the Custom Tool

    This is how the code from above can then be re-written using this tool, it works in the exactly same way but with a fancy vanity namespace of the resources.

    SP.SOD.executeOrDelayUntilScriptLoaded(function () {
        "/_layouts/15/ScriptResx.ashx?name=demoresources&culture=" + 
      SP.SOD.executeFunc("demoresources", 'SPResXDemo', function () {
    }, "strings.js");


    I hope this little tool will help somebody out there and I would appreciate feedback on it, either on this post or in the Visual Studio gallery.

  • SharePoint 2010 Developer Dashboard configuration feature

    Tags: Downloads, SharePoint 2010

    The Developer Dashboard in SharePoint 2010 can be configured using STSADM commands, PowerShell or some coding. To easy turn the Developer Dashboard on and off I have created a Farm scoped feature that allows you to configure the Developer Dashboard from Central Administration > General Application Settings > Development Settings.

    Developer Dashboard configuration in Central Administration

    The Developer Dashboard contains more configuration options than just to turn it on or off. With this feature you can configure all of the options available for the dashboard:

    • Display mode (On, Off, On Demand)
    • Auto Launch of Developer Dashboard when critical events is tracked
    • Enable the ASP.NET tracing output
    • Configure the maximum amount of SQL queries traced
    • Configure the maximum amount of critical events traced
    • The required permission to view the Developer Dashboard (Full, None or Custom)

    Configuration of the Developer Dashboard

    If you think this is something you need, and of course you do then you can download the feature here. Extract the ZIP file and install the WSP into your SharePoint 2010 farm!

  • Preview PDF files in Microsoft Outlook 2007

    Tags: Microsoft Office, Windows Vista, Downloads

    Previewing files and attachments in Microsoft Outlook 2007 is one of the new killer features that makes my, and hopefully yours, life easier. When installing Outlook 2007 you will get preview functionality for the standard Microsoft applications and images. Previewing files is also integrated into the Windows Vista Explorer.

    Tim Heuer (mr double-snake error) has together with Foxit software created a PDF previewer. The PDF Preview Handler is easy to set up and is incredible fast in rendering PDF documents for preview.

    Go get it!

  • Announcing: msfeedicon 1.4

    Tags: Windows XP, Internet Explorer, Windows Vista, Downloads, msfeedicon

    Here comes yet another update to the msfeedicon utility, version 1.4.

    The msfeedicon utility is a free notification icon for the Windows RSS platform, that comes with Internet Explorer 7. The utility will show whenever one of your feeds have been updated and gives you easy access to view the feed. All this so you do not have to waste space on your screen with the Internet Explorer 7 Feeds task pane or some Windows Vista Sidebar gadget.

    Features of msfeedicon 1.4

    • An icon in the system tray showing if you have unread RSS or Atom feed items or not
    • The icon also shows when the feed synchronization is disabled and when it is downloading the feeds
    • Balloon tip when a feed is updated, with instant access to the updated feed
    • Starts when you log into Windows
    • Function so you can force an update of all your feeds, even if they are not scheduled for update
    • Checks for new versions of the msfeedicon utility

    What's new in 1.4?

    • Statistics of your feed subscriptions
    • The ability to enable or disable the feed background synchronization
    • Installation program checks for Internet Explorer 7
    • Some bugs are also eliminated


    The msfeedicon utility requires Microsoft.NET 2.0 or higher, Microsoft Internet Explorer 7 and Windows XP or Windows Vista.

    Where is the download?

    You can download msfeedicon from these locations:

    If you have time, please review the application on any of the sites above?

  • Total Commander 7.0 in beta

    Tags: Windows XP, Windows Vista, Windows Server 2003, Downloads

    Screenshot of Total Commander 7.0 beta 2 My favorite Windows Explorer replacement Total Commander is in beta for version 7.0.

    Total Commander is a great tool for managing files and folders and totally replaces the Windows Explorer for me since it is so much faster in managing files and folders in just one simple window.

    Version 7.0 contains mostly a nicer interface but includes some highlights such as:

    • Show the drive names in the tabs
    • Alternating background colors on files and folders
    • Nicer overwrite dialog with thumbnail preview
    • Run as administrator when privileges are insufficient

    I have been a huge fan of the application since I first discovered it years ago (when it was called Windows Commander). When DOS was the primary interface of the PC I used the ASCII based Norton Commander for DOS.

  • Announcing: MSDN Locator plugin for Windows Live Writer

    Tags: Windows Live Writer, Downloads, Windows Live

    When writing blog posts I once in a while link to classes and methods in the MSDN Library. So why not simplify this job a bit by writing yet another Windows Live Writer plugin - MSDN Locator plugin for Windows Live Writer.

    Screenshot of the plugin

    The plugin allows you to search for a class, namespace, method or property using the full name and then inserts a link tag with a description (title attribute).

    Here are some samples:

    System.Console.WriteLine, System.IO.Packaging, System.Windows.Xps

    This is just the first version so please report any problems and/or any suggestions for improvements.

    Download the plugin here, it will shortly be available at the Windows Live Gallery.

  • MSDN Subscriber Downloads site planned maintenance

    Tags: SharePoint, Microsoft Office, Windows Vista, Downloads

    The MSDN Subscriber Downloads site will be unavailable this friday

    "...from 7:00PM to 9:00PM Pacific time on Friday, November 10, 2006,for planned maintenance and upgrades. Both downloads and product keys will be unavailable..."

    I guess that they are making an update to handle the heavy download request for all the RTM:ed products this week such as Office System 2007 and Vista.

  • VHD downloads from Microsoft

    Tags: Microsoft, SharePoint, SQL Server, Virtual Server, Windows Server 2003, Downloads

    Microsoft offers a number of VHD downloads at Microsoft Download Center. You can find ready to go/test virtual hard disk images of:

    The Dynamics CRM demo VHD contains a complete server with Windows Server 2003, Active Directory, SQL Server 2005, Exchange Server 2003, Microsoft CRM and Visual Studio 2005.

    This is a great step forward and will make testing of beta server products more efficient. I guess there will be a MOSS 2007 VHD available soon...

About Wictor...

Wictor Wilén is the Nordic Digital Workplace Lead working at Avanade. Wictor has achieved the Microsoft Certified Architect (MCA) - SharePoint 2010, Microsoft Certified Solutions Master (MCSM) - SharePoint  and Microsoft Certified Master (MCM) - SharePoint 2010 certifications. He has also been awarded Microsoft Most Valuable Professional (MVP) for seven consecutive years.

And a word from our sponsors...