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
Post a Comment