K-MUG Usergroup Meeting on 3rd August Kochi

Posted by Anuraj on Tuesday, July 23, 2013 Reading time :1 minute

Miscellaneous User Group Activities

How to upload image on Facebook using graph API and C#

Posted by Anuraj on Monday, July 22, 2013 Reading time :1 minute

.Net .Net 4.0 ASP.Net MVC Windows Forms

Long back I wrote a post about uploading files to Sky Drive from C# Winform application. This post is about uploading an image to Facebook using C# without any 3rd party library.

How to implement text to speech in WP7 using BING API

Posted by Anuraj on Friday, July 19, 2013 Reading time :2 minutes

.Net Windows Forms Windows Phone

In WP8, Microsoft introduced libraries for both Text to Speech and Speech to Text without an active internet connection. But this feature is not available in WP7. I found some article implementing Text to Speech using BING API, but seems it is no more working. Here is one implementation using BING REST API, which helps to integrate text to speech in in you WP7 applications.

"The file you are trying to open, [filename], is in a different format than specified by the file extension" error opening Excel file

Posted by Anuraj on Monday, July 1, 2013 Reading time :1 minute

.Net .Net 3.0 / 3.5 .Net 4.0 Windows Forms

Today I got another problem with Excel file opening. One of the my colleague wrote code to generate XLS / XLSX file using OleDb object. And it was working perfectly. Only problem, while opening the XLS / XLSX file, MS Excel was displaying an error like this.

Registry.LocalMachine.OpenSubKey() returns null

Posted by Anuraj on Monday, July 1, 2013 Reading time :1 minute

.Net .Net 3.0 / 3.5 .Net 4.0

To verify excel installed on my local system; initially I tried using OpenSubKey() method. But it was always returning null, even though I can see the registry key using regedit.exe. I was using a Windows 8, x64 bit OS and the application was developed in VS 2008, Winforms, x86 platform. Later I found the reason - A 32-bit application on a 64-bit OS will be looking at the HKLM\Software\Wow6432Node node by default. To read the 64-bit version of the key, you’ll need to specify the RegistryView enumeration using OpenBaseKey() method.(This API is added in .Net 4.0.) And if you are using .Net 3.5 or below, either you need to build the application using Any CPU or x64 platform target.

How to detect MS Excel installed on the system

Posted by Anuraj on Monday, July 1, 2013 Reading time :1 minute

.Net .Net 3.0 / 3.5 .Net 4.0

Today I faced an issue, I want to open an excel file from a Windows application; before opening the file, I want to verify that MS Excel installed on the system. I found a solution using registry from MSDN.

How to generate and read QR code in asp.net

Posted by Anuraj on Monday, June 24, 2013 Reading time :1 minute

.Net ASP.Net Visual Studio Windows Forms Windows Phone

QR code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed for the automotive industry in Japan; a barcode is an optically machine-readable label that is attached to an item and that records information related to that item: The information encoded by a QR code may be made up of four standardized types (“modes”) of data (numeric, alphanumeric, byte / binary, Kanji) or, through supported extensions, virtually any type of data. - Wikipedia.
BMC logoBuy me a coffee

Copyright © 2019 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub