public ExcelWriter(string filename) { template = new OoXml(filename); // Open the template sheet = template.sheets.Values.First<gSheet>(); // Get the first sheet GetMapping(); // Get the mapping sheet.SetSource(OnDataRow, fixedRows); // Set data call back, keep first row of the template }
internal gSheet(OoXml d, int i, string n, gStream s) { Document = d; Index = i; Name = n; Stream = s; }
public gSheet Sheet = null; // This links to a data sheet if his stream implements a data sheet public gStream(OoXml doc, ZipStorer zip, ZipStorer.ZipFileEntry z) // This constructor is called when creating the stream from the source template { Document = doc; // Save a reference to the document zfe = z; // Store the ZipFileEntry }
public ExcelReader(string filename) { source = new OoXml(filename); // Open the excel file sheet = source.sheets.Values.First<gSheet>(); // Get the first sheet }