Finding out which FlexCel version you are using
Sometimes you want to know the exact FlexCel version you are using from inside your app, and you might also want to make sure you aren't using a trial. You can use the following code to find out:
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(ExcelFile));
//Find out the version.
var version = assembly.GetName().Version;
Console.Write(version.ToString());
//Find out if it is a trial or a registered assembly. Trial has the word "TRIAL" in the title.
var title = assembly.GetCustomAttributes(typeof(System.Reflection.AssemblyTitleAttribute), false)
.OfType<System.Reflection.AssemblyTitleAttribute>()
.FirstOrDefault().Title;
Console.WriteLine(title);