Example #1
0
        public override ITabularDataStore GetDataStore()
        {
            var res   = new ExcelXmlDataStore();
            var place = new FilePlaceExternalApp();

            place.SetFileHolderInfo(res);
            res.FilePlace = place;
            return(res);
        }
        public override void FillTable(ITableStructure table, IDataQueue queue, TableCopyOptions opts)
        {
            var fmt = new BedValueFormatter(FormatSettings);

            ExcelXmlDataStore.WriteHeaders(m_fw, table, table.FullName.ToString());
            try
            {
                while (!queue.IsEof)
                {
                    var record = queue.GetRecord();
                    ExcelXmlDataStore.WriteRow(m_fw, table, record, fmt);
                }
            }
            finally
            {
                queue.CloseReading();
            }
            m_fw.Write("</ss:Table>\n");
            m_fw.Write("</Worksheet>\n");
        }