Snippets of the day – Monday, June 06, 2016

Posted on Posted in Snippets

Here are some of the most recently published snippets!

Change the address in the browser without reloading

In HTML5 it is possible to change part of the address in the address browser without reloading the page. This helps building single page site with elements of the UI addressable using a consistent URL.

See an example here: .

By clicking on any article box a popup within the same page shows the content, and the URL in the address bar changes. Browser compatibility for this feature is available here: ,
Open the snippet
Author: micurs

Soundex in Java

How to get a soundex from a String in Java
Open the snippet
Author: lauhin

How to programmatically create a Microsoft Word document in csharp

This code shows how to simply create a doc using csharp and Microsoft Office Word library.

1) You need to add a reference to Microsoft.Office.Interop library in your project solution.

2) Add the following line to the end of the list of using directives:

using Word = Microsoft.Office.Interop.Word;

using System.Reflection;

3) Now you are ready to create a button and link to it a method to create a doc.

4) Once you click the button, a new Word doc will be created, containing some header sections, paragraphs, tables and chart as well.

This code has been developed and tested for Office 2013 [ver 15].
Open the snippet
Author: lbottaro

2 thoughts on “Snippets of the day – Monday, June 06, 2016

Leave a Reply

Your email address will not be published. Required fields are marked *