Populate Excel Range using COM object in php -


I would like to extend the excel generation on the server using the range I know that 1 cell heating one after the other Is hot for For example:

  $ ExcelApp = new COM ("excel.application") or die ("unable to start MS Excel"); $ ExcelWordbook = $ ExcelApp- & gt; Workbooks-> Add (); $ ExcelSheet = $ ExcelWordbook- & gt; Worksheets (1); $ ExcelSheet- & gt; Active; $ ExcelSheet- & gt; Room (1, 1) - & gt; Value = "id"; $ ExcelSheet- & gt; Room (1, 2) - & gt; Value = "user"; $ ExcelSheet- & gt; Room (1, 3) - & gt; Value = "pn";  

But how can I create it in a shot using range? Certainly such a thing is not working.

  $ ExcelSheet-> Category ("A1: A3") - & gt; Value = array ("id", "user", "pn");  

Any ideas?

Do you try with phpexcel settings


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -