Basic functional version.
Translated from VBA to C#, for the first part.
Added new classes to handle better differences between types.

Error processing is managed during generation, with a specific display (MessageBox of Excel).