Tag: .NET

webTiger Logo Wide
  • Word Automation Services in SharePoint 2010

    SharePoint 2010 Logo

    Until Office 2007, Microsoft hadn’t offered any reliable Office suite automation capabilities with the exception of client-side mail merge. This often meant companies/developers had to hand-craft Word documents at byte level, or invest in costly commercial products that did so for them. With Office 2007, Microsoft’s introduced Open XML document formats and an OpenXML SDK for developers, but it still had some short comings when working with templates or converting between file formats.

    (more…)
  • Working With CSV Files in .NET

    There will be a point when you need to import data from a CSV (comma-separated values) file, and you’ll realise what should be a straightforward process can become overcomplicated. Part of the reason for this is likely to be that you don’t fully understand the CSV format, because you are just blindly delimiting on any comma you find or because the CSV file you are importing is invalid because the person/program who generated it didn’t properly understand the encoding rules.

    (more…)
  • A Better Class of .NET FTP Client

    The .NET Framework includes some FTP capabilities within the System.Net namespace. My experience using those classes has been mixed to say the least, and after struggling to get solutions to work reliably I decided to write my own client class instead.

    (more…)
  • Programming System-Wide Hot Keys For Your Application

    In Windows, system-wide hot-keys provide a means to trigger functionality within an application regardless of which program is currently in focus. This allows you to develop applications that run from the system tray, etc. and can be displayed or perform some function (like screen capture) without the user having to click on them first.

    (more…)
  • Querying Active Directory

    The .NET Framework includes Active Directory (AD) interaction classes out-of-the-box, and this article provides some guidance on using those classes to interrogate your Domain Controller.

    (more…)
  • .NET Tutorials – 11 – Windows Forms

    Microsoft .NET Logo

    In previous tutorials to date, we’ve broadly introduced the core concepts and features for developing with .NET, but we have only used Console applications to do this. Most .NET apps you will be writing are likely to be UI based, so let’s look at the most commonly used .NET Windows UI development platform, Windows Forms (or simply WinForms for short).

    (more…)
  • .NET Tutorials – 10 – Database Access and ADO.NET

    Microsoft .NET Logo

    This tutorial introduces database interaction in .NET, and more specifically the ADO.NET architecture and how to use it to work with databases.

    (more…)
  • .NET Tutorials – 9 – Strings and Regex

    Microsoft .NET Logo

    Strings are a heavily used data type that is able to holding textual data. Even though a lot of developers may think of .NET’s System.String data type as a primitive, it is a reference type and Microsoft don’t class it as one. It does have its own C# keyword (string) which often leads the confusion. This article introduces strings in detail.

    (more…)
  • .NET Tutorials – 8 – Collections

    Microsoft .NET Logo

    C# and the .NET platform have a plethora of collection classes for grouping a variable number of data items. With the advent of Generics in .NET 2.0, most of these collection classes are type-safe, meaning that the collections contain items of the same type or derived from the same type.

    (more…)
  • .NET Tutorials – 7 – Interfaces

    Microsoft .NET Logo

    An interface is a contract that guarantees that a class or struct will conform to a particular specification. When a class inherits from an interface it subscribes to supporting the behaviours that it defines. Implementation classes must implement all aspects of an interface.

    (more…)