how do you add a named range to worksheet using php pear spreadsheet excel writer -


is posible using excel_spreadsheet_writer create name such as

$workbook  = new spreadsheet_excel_writer(); $worksheet = &$workbook->addworksheet('checknames');  $worksheet->writename(0, 0, 'answertoeverythig', '42');  $worksheet->write(0, 1, 'double =');  $worksheet->writeformula(0, 2, '=answertoeverythig * 2');  $workbook->send('checknames.xls'); $workbook->close(); 

and dispay 84 in cell c1

as recommended cypher i've tried phpexcel internal server error on following

$prices_sheet->setcellvaluebycolumnandrow(4, $row, '=if(round_up=0,  (c'.$row.'+d'.$row.'),  0.01  )'); 

changing formula

'=if(0=0,  (c'.$row.'+d'.$row.'),  0.01  )' 

stops error.

therefore phpexcel has problems resolving formulas using named ranges.

found http://phpexcel.codeplex.com/thread/view.aspx?threadid=209472

i'm not sure how spreadsheetexcelwriter, can done phpexcel. i've been using phpexcel long time , can recommend it.


Comments

  1. I would like to say that this blog really convinced me to update my knowledge about the technology you talk about. Thanks, very good post
    iOS Training Chennai
    best ios training in chennai

    ReplyDelete

Post a Comment

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -