public XLWriter(string xlRootPath, XlWriterStrategy writer = null)
        {
            if (writer != null)
                this.WriterStrategy = writer;
            //Definir caminho do arquivo de modelo
            this.ModelPath = Path.Combine(xlRootPath, writer.ModelFilename);

            //Abrir arquivo para edicao como objeto NPOI
            this.Book = new HSSFWorkbook(new FileStream(this.ModelPath, FileMode.Open, FileAccess.Read));
        }
Exemple #2
0
        public XLWriter(string xlRootPath, XlWriterStrategy writer = null)
        {
            if (writer != null)
            {
                this.WriterStrategy = writer;
            }
            //Definir caminho do arquivo de modelo
            this.ModelPath = Path.Combine(xlRootPath, writer.ModelFilename);

            //Abrir arquivo para edicao como objeto NPOI
            this.Book = new HSSFWorkbook(new FileStream(this.ModelPath, FileMode.Open, FileAccess.Read));
        }