/// ----------------------------------------------------------------------------------------------- /// <summary> /// Overload 1: Base Constructor /// </summary> /// ----------------------------------------------------------------------------------------------- public Exporter() { try { /* Diagnostic */ Log.Info("Entering Default Constructor."); _settings = DefaultStyles.SetupDefaultStyles(); _document = new SLDocument(); } catch (Exception ex) { Log.Error("SpreadsheetLightWrapper.Export.Exporter.Constructor: Overload 1 -> " + ex.Message + ": " + ex); } }
/// ----------------------------------------------------------------------------------------------- /// <summary> /// Overload 2: Constructor /// </summary> /// <param name="settings">Settings</param> /// ----------------------------------------------------------------------------------------------- private Exporter(Settings settings) { try { /* Diagnostic */ //Log.Info("Entering Exporter Constructor - Overload 2."); //ErrorHandlingTester(0); _document = new SLDocument(); /* ------------------------------------------------------------ * Initialize the default styles * If the user doesn't input any then get the Default styles * from the SpreadsheetLightWrapper library * ----------------------------------------------------------*/ _settings = settings ?? DefaultStyles.SetupDefaultStyles(); } catch (Exception ex) { Log.Error("SpreadsheetLightWrapper.Export.Exporter.Constructor: Overload 2 -> " + ex.Message + ": " + ex); } }