Fixes for formulas

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352502 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-04-27 17:26:06 +00:00
parent 5ef5d863e6
commit d2738922a8
2 changed files with 5 additions and 2 deletions

View File

@ -62,6 +62,8 @@ import java.util.Stack;
import org.apache.poi.hssf.usermodel.*;
import java.io.FileOutputStream;
import java.io.File;
/**
* EXPERIMENTAL
@ -438,7 +440,8 @@ end;
System.out.println("Converted Text form is : "+fp.toFormulaString(fp.getRPNPtg()));
try {
short rownum = 0;
FileOutputStream out = new FileOutputStream("test.xls");
File file = File.createTempFile("testFormula",".xls");
FileOutputStream out = new FileOutputStream(file);
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet s = wb.createSheet();
HSSFRow r = null;

View File

@ -701,7 +701,7 @@ public class HSSFCell
fp.parse();
Ptg[] ptg = fp.getRPNPtg();
int size = 0;
System.out.println("got Ptgs " + ptg.length);
//System.out.println("got Ptgs " + ptg.length);
for (int k = 0; k < ptg.length; k++) {
size += ptg[ k ].getSize();
rec.pushExpressionToken(ptg[ k ]);