Example #1
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            //get output file name
            var info           = new FileInfo(_originalFilePath);
            var targetfilename = info.DirectoryName + Path.DirectorySeparatorChar + _convertSettings.FileNamePrefix +
                                 info.Name.Substring(0, info.Name.IndexOf(info.Extension, StringComparison.Ordinal));

            //initialize Excel writer
            _excelSuperWriter = new ExcelSuperWriter();
            _excelSuperWriter.Initialize(targetfilename + ".Preview.xlsx", _convertSettings);
        }
Example #2
0
        /// <summary>
        /// Start of new file
        /// </summary>
        /// <param name="fileInfo"></param>
        public override void SetFileProperties(IFileProperties fileInfo)
        {
            //get output file name
            FileInfo info           = new FileInfo(_originalFilePath);
            string   targetfilename = info.DirectoryName + Path.DirectorySeparatorChar + _convertSettings.FileNamePrefix +
                                      info.Name.Substring(0, info.Name.IndexOf(info.Extension));

            //initialize Excel writer

            _excelSuperWriter = new ExcelSuperWriter();
            _excelSuperWriter.Initialize(targetfilename + ".Preview.xlsx", _convertSettings);
        }
Example #3
0
        /// <summary>
        /// Start of new file
        /// </summary>
        /// <param name="fileInfo"></param>
        public override void SetFileProperties(IFileProperties fileInfo)
        {
            //get output file name
            FileInfo info = new FileInfo(_originalFilePath);
            string targetfilename = info.DirectoryName + Path.DirectorySeparatorChar + _convertSettings.FileNamePrefix +
                                    info.Name.Substring(0, info.Name.IndexOf(info.Extension));

            //initialize Excel writer

            _excelSuperWriter = new ExcelSuperWriter();
            _excelSuperWriter.Initialize(targetfilename + ".Preview.xlsx", _convertSettings);
        }