RecordInputStream input = new RecordInputStream(stream); BiffRecord record = new BiffRecord(); record.Read(input);
RecordInputStream input = new RecordInputStream(stream); FormulaRecord formulaRecord = new FormulaRecord(); formulaRecord.Read(input); byte[] formulaData = input.ReadRemainder(); Ptg[] parsedExpression = FormulaParser.Parse(formulaData, null, null);This code parses the binary data for a FormulaRecord using RecordInputStream, and then extracts the formula data as a byte array. It then uses the FormulaParser class to parse the formula expression into a Polymorphic Token Group (Ptg) array. These examples demonstrate the use of the NPOI.HSSF.Record RecordInputStream class to read and parse binary records from Excel files.