chartObj.SeriesCollection().NewSeries()
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 465,
in __getattr__
raise AttributeError("'%s' object has no attribute '%s'" % (repr(self),
attr))
AttributeError: ''
Jaydeep Patil writes:
> I have created chart object. But unable to add series into chart.
Your code isn't self-contained (we are not able to run it as you
presented it).
Are you relying on some specific third-party library? If so, you need to
be explicit. You may also get better response if you
chartObj.SeriesCollection().NewSeries()
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 465,
in __getattr__
raise AttributeError("'%s' object has no attribute '%s'" % (repr(self),
attr))
AttributeError: '' object has no attribute 'SeriesCollection'
>>> se = chartObj.SeriesCollection().NewSeries()
Regards
Jay
--
https://mail.python.org/mailman/listinfo/python-list
On 13/02/2014 11:58, Jaydeep Patil wrote:
> Just consider that you have chart object & you need to add data series for
> that chart. How you can add this?
Jaydeep: you're writing to a general Python list. Few of the people here
run on Windows; fewer still will use Python to automate Excel via COM
e.Chart.SeriesCollection
>>
Regards
Stefan Schukat
-Original Message-
From: Python-list [mailto:python-list-bounces+sschukat=dspace...@python.org] On
Behalf Of Jaydeep Patil
Sent: Thursday, February 13, 2014 12:05 PM
To: python-list@python.org
Subject: AttributeError: '&