Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do Formula #53

Open
GoogleCodeExporter opened this issue Jun 30, 2015 · 0 comments
Open

How do Formula #53

GoogleCodeExporter opened this issue Jun 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I have this example

---------------------------------------------------------------

var sheet:Sheet = new Sheet();
sheet.resize(10, 10);

sheet.setCell(0, 0, "Today's date:");
sheet.setCell(0, 1, new Date());

for(var i:int=1; i<4; i++)
{
  var valor:int = 13*i;
  sheet.setCell(i, 1, valor);
}

var tokens:ByteArray = new ByteArray();

var formula:Formula = new Formula(4, 1, tokens, BIFFVersion.BIFF8, sheet);
sheet.setCell(4, 1, formula);

var xls:ExcelFile = new ExcelFile();
xls.sheets.addItem(sheet);
var bytes:ByteArray = xls.saveToByteArray();

var sFilePath:String = "myfile.xls";

var fr:FileReference = new FileReference(); 
fr.save(bytes, sFilePath); 

---------------------------------------------------------------

I want apply Sum Formula to cell {[1,1], [2,1], [3,1]}

any idea?



Original issue reported on code.google.com by miguelhpm on 7 Nov 2011 at 2:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant