Posts

Latest

Yet another bad sample from Microsoft

Image
Recently I played a bit with the  Microsoft Azure Information Protection  add-in for Outlook which  helps classify, label and protect sensitive data in your organization, based on a simple and intuitive end-user interface and IT policies. And here is what I see in Outlook: a ribbon UI error which comes from the MS add-in It is a shame for MS developers to produce such software being a well-known industry leader.  BTW Also noticed, the add-in itself was not built on top of VSTO (Visual Studio Tools for Office). Interestingly, but the Microsoft team decided to use a third-party framework called Add-in Express which is a competitor of their own development toolset packaged with Visual Studio.

A new milestone is passed successfully - 50.000 points!

Image
Well, five years were passed since a new MSDN account was registered when I started to participate on developers forums mostly answering questions around Visual Studio Tools for Office and automation of Office applications from a perspective of .net developers. Today I celebrate a new milestone reached - 50000 points! an MSDN badge Looks like I did a lot... Let's capture the profile records for the future usage. Will be really interesting to take a look in a year on the progress made since that post. an MSDN profile Well, at the same time recently I heard a lot of buzz around MVP award received by people around me (July,1 is the day of notifications from MS). But mostly I don't see those persons online helping others and showing their expertise. Only a few people can be named who really and truly deserves such awards. So, I make a conclusion that protectionism and right connections do their job. It is like a train that goes on its rails... Let's rock this wor

A bad sample from the VSTO team (Microsoft)

Image
Microsoft Office add-in developers are aware of the setting for displaying ribbon UI errors. So, I keep it set everywhere to prevent releasing the code that may lead to UI errors on end users machines. Here is where you can find the option for enabling that: See  How to: Show Add-in User Interface Errors  for more information. And recently after latest updates for Microsoft Office, I suddenly started getting annoying error message boxes in Excel with UI errors. I have got Excel with the following build numbers installed on my machine: Microsoft Excel 2016 - 16.0.9330.2073 - 32-bit   Here is how it looks like in Excel, the error message bombs users twice when they try to open the File menu (the File backstage tab) and go back, or just open another workbook - a lot of cases: As you see on the screenshot, the caption says that an error message is caused by the VSTO design-time adapter for Excel. Then I checked the list of COM add-ins in Excel and found a problematic

Belarus ? Where is it ?

Image
Well, sometimes I am very impressed by the knowledge of software developers. For example, let's consider a scenario described below. Recently I have read blog articles related to Add-in Express and Freshbooks: How to integrate Outlook add-in with Freshbooks web-service, part 1 Calling Freshbooks web-service from Outlook, part 2 Then tried to take a closer look at the Freshbooks web site. But I didn't find Belarus in the list of countries: P.S. The Add-in Express office is located in Belarus.

What does 'Embargo' mean for IT professionals? - Part I

Image
     I am, like any other Windows based developer, extensively use services and software provided by the U.S. companies. But recently I started to see a strange message stating that the country where I live (Belarus now) is sanctioned by the United States and my IP addresses are blocked. So, we can't use their services any longer. Most probably, and I suspect that such decision was made based on the Russia-Ukraine war. Because earlier this year I could open any page on the web site without any issue. But how we, developers, are related to the war or even politician games?  For example, I see the following text on the Pluralsight.com web site: Because your IP address or billing address is associated with a country that is sanctioned by the United States, by U.S. law we are required to block your access to Pluralsight.com. If you believe you are receiving  this message in error, please contact ...@pluralsight.com The exact picture is shown on the screenshot:

Windows Installer: A wrong information is displayed in the Add/Remove programs applet

Image
Some time ago I was asked by the developer: what can be a cause when we see an old information in the Control Panel applet for our application? It can be a wrong description, old build version and etc. Well, it depends... First, I took a look at the  Add/Remove Programs tool displays installed programs incorrectly article. The list of OS is pretty old, so I don't think that you find the real cause there. Then I started looking at the source code. Due to the fact that Windows Installer projects were removed from the list of Visual Studio projects, we use WiX toolset for creating installers to deploy the software on other machines. Didn't find anything strange in the XML markup also, so decided to look at the .MSI file itself. The Orca.exe utility is a great help in such cases. See How to use the Orca database editor to edit Windows Installer files for more information. But there I didn't find any possible cause also. All properties were set according to the source f

Microsoft Word: How to get a selected word when you do a right click

Image
One of the widely spread tasks in word is to get the current word for processing it further. For example, you typed a single word and what to do some actions against it, or search in the dictionary (database) for such entries. I.e. do whatever you need. When you do the right click on the word you may see the context menu with the Synonyms entry: Do you look for a similar implementation? If so, this article will give you a good start! The Word object model provides the Selection class. Unfortunately it doesn't provide any information about the currently selected word, i.e. where exactly the user did the right click. As one of the possible ways, to get the job done you may use the MoveStart* and MoveEnd* methods of the Selection class. I included asterisks intentionally to draw your attention to the fact that you may find other methods / variations useful. So here I will give you the basics. The MoveStartUntil method of the Selection class moves the start position