Generating Class Diagram using Visual Studio 2013


Hi,

Currently working on some documentation, so had to generated some class diagrams. Visual Studio 2013 provides us modelling project which can be used for generating the class diagram.

Check this article

http://blogs.msdn.com/b/cdndevs/archive/2014/08/11/working-with-class-diagrams-let-visual-studio-2013-do-the-work.aspx

Hope it helps..

Using HTML Tags for formatting in InfoPath Rich Text Box Control


Hi,

We had a requirement to format custom error messages that we were displaying in the rich text box control inside InfoPath Form.

For this we can use AppendChild method of XPathNavigator object.

For e.g. below is the html we need

The code that we need to use

XPathNavigator richTextField = domNav.SelectSingleNode(“/my:myFields/my:field4”, NamespaceManager);

richTextField.AppendChild(“<h2 xmlns=\”http://www.w3.org/1999/xhtml\”>Error Message Header</h2><p xmlns=\”http://www.w3.org/1999/xhtml\”>This is my custom <font xmlns=\”http://www.w3.org/1999/xhtml\” size=\”3\” color=\”red\”> error </font> message.</p>”);

The output

We need to define namespace for each tag used else we get exception.

The helpful post

http://www.bizsupportonline.net/infopath2007/how-to-render-html-in-rich-text-box-infopath.htm

Hope it helps..

Remove web part that is causing error from a SharePoint page


Hi,

On adding a web part if in a page at times it throws error and we need to access the page and remove that web part.

To do so we need to add the following querystring to the page url

http://localhost/Pages/Home.aspx?contents=1

It will open the page and will present the list of web parts in the page from wherein we can select and delete the web part that was causing the error.

Hope it helps..

Hello World InfoPath Form with Code Behind


Hi,

Had to do some POC around InfoPath form having code behind.

Found this wonderful article

http://johanolivier.blogspot.in/2010/08/infopath-2010-development-part-1-add.html

Bye..

CAML Query Builder for SharePoint 2013


Hi,

Recently had to write CSOM code to fetch value of a particular list item.

The following tool made it really easy to write the CAML Query.

https://spcamlqueryhelper.codeplex.com/

Bye..

2014 in review


The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 260,000 times in 2014. If it were an exhibit at the Louvre Museum, it would take about 11 days for that many people to see it.

Click here to see the complete report.

Nishant Rana's Weblog

Everything related to Microsoft .NET Technology

Skip to content ↓