How to Initialized Client Context in Office 365 / Claim Based Authenticated Sites

nProblem:nnGenerally we initialize the client context straightnaway by creating new object of class ClientContext and by providing the url ofnthe site as well as needed credentials, but for sites using claims basednauthentication (let it be Office 365 site or On Premise site) this logic won’t,nso what’s the solution?n n n nSolution:n n nUser must be … Read more

How to find and replace text programmatically – MS Word

nn nWhile working with the Add – In, came across the scenarionwhere I needed to replace the text in word document programmatically, this isnhow it can be done n nFollowing code finds the word occurrence andnreplaces with the desired characters in first paragraph of the document. n nprivate voidnFindAndReplaceText(object _wordToFind, object _replaceWith) n n{ n … Read more