/// <summary> /// 构造管理器 /// </summary> /// <param name="inputDirection">输入的路径</param> /// <param name="useNotice">使用的通知器</param> /// <param name="inputMaxColumnNumber">使用的最大Column号</param> public DirectionExcelNoneMerge(DirectoryInfo inputDirection, INoneMergeNotice useNotice = null, uint?inputMaxColumnNumber = null) { m_inputDirectory = inputDirection; m_useNotice = useNotice; m_useManger = new ExcelNoneMergeManger(m_useNotice, inputMaxColumnNumber); PreparePath(m_inputDirectory); m_lstPath = m_lstPath.Distinct().ToList(); }
/// <summary> /// 构造管理器 /// </summary> /// <param name="inputNotice">使用的通知器</param> /// <param name="inputMaxColumnNumber">使用的最大Column号</param> public ExcelNoneMergeManger(INoneMergeNotice inputNotice = null, uint?inputMaxColumnNumber = null) { m_useNotice = inputNotice; m_thisApplication = new Application(); m_thisApplication.Visible = false; m_thisApplication.DisplayAlerts = false; m_thisApplication.AlertBeforeOverwriting = false; if (inputMaxColumnNumber.HasValue) { m_useColumnMaxNumber = inputMaxColumnNumber.Value; } }