public WriteAccess(FileInfo file, TextWriter os) { WorkbookSettings ws = new WorkbookSettings(); Stream fis = new FileStream(file.FullName,FileMode.Open,FileAccess.Read); CSharpJExcel.Jxl.Read.Biff.File f = new CSharpJExcel.Jxl.Read.Biff.File(fis, ws); reader = new BiffRecordReader(f); display(ws,os); fis.Close(); }
/** * Constructor * * @param file the file * @param os the output stream * @exception IOException * @exception BiffException */ public BiffDump(FileInfo file, TextWriter os) { FileStream fis = new FileStream(file.FullName,FileMode.Open); CSharpJExcel.Jxl.Read.Biff.File f = new CSharpJExcel.Jxl.Read.Biff.File(fis, new WorkbookSettings()); reader = new BiffRecordReader(f); buildNameHash(); dump(os); os.Flush(); // os.close(); fis.Close(); }
/** * Constructor * * @param file the file * @param os the output stream * @exception IOException * @exception BiffException */ public BiffDump(FileInfo file, TextWriter os) { FileStream fis = new FileStream(file.FullName, FileMode.Open); CSharpJExcel.Jxl.Read.Biff.File f = new CSharpJExcel.Jxl.Read.Biff.File(fis, new WorkbookSettings()); reader = new BiffRecordReader(f); buildNameHash(); dump(os); os.Flush(); // os.close(); fis.Close(); }