COM PHP translation

From: Date: Thu, 31 Aug 2000 13:57:24 +0000
Subject: COM PHP translation
Groups: php.windows 
Request: Send a blank email to php-windows+get-2338@lists.php.net to get a copy of this message
I am having problems translating some VB to PHP to get COM to work in Excel. Here is some code I am trying to translate: Range("A2:D7").Select Charts.Add ActiveChart.ChartType = xlColumnClustered ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A2:D7"), PlotBy:= _
       xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1" With ActiveChart
       .HasTitle = True
       .ChartTitle.Characters.Text = "GCPR Productivity"
       .Axes(xlCategory, xlPrimary).HasTitle = False
       .Axes(xlValue, xlPrimary).HasTitle = False
End With In PHP I seem to be having problems doing the Selects and various other things. Here is an example of my own code that seems to fail because of some parameters: $excel->Range("A2:D7")->Select; //Doesn't work $excel->Range->Select("A2:D7"); //Gives me a PropGet() error Can someone help me on this? Thanks in advance, matt Podwysocki _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.windows (#2338) next »