473,804 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

win32com problems with Visible property

I have been working with win32com on python for 2 years now. I
recently tried to modify an older script I had made which creates and
excel workbook, fills it with data and then graphs the data.

Nothing is working!
When I try to run it I get this error:

"Property '%s.%s' can not be set." % (self._username _, attr)
AttributeError: Property 'Excel.Applicat ion.visible' can not be set."

Does anyone know why this is happening? I can't figure out if windows
has changed or if win32all or the new python distribution is the
problem. Worse yet, I reinstalled my old versions of python and
win32all and that isn't working either!

Thanks in advance.
-rebecca
Jul 18 '05 #1
3 11873
Rebecca Taylor wrote:

I have been working with win32com on python for 2 years now. I
recently tried to modify an older script I had made which creates and
excel workbook, fills it with data and then graphs the data.

Nothing is working!
When I try to run it I get this error:

"Property '%s.%s' can not be set." % (self._username _, attr)
AttributeError: Property 'Excel.Applicat ion.visible' can not be set."

Does anyone know why this is happening? I can't figure out if windows
has changed or if win32all or the new python distribution is the
problem. Worse yet, I reinstalled my old versions of python and
win32all and that isn't working either!


I'm not sure what the problem is, but cutting and pasting the *actual*
traceback instead of retyping might help us find it, or at least would
help us trust everything you're saying. Not having 100% confidence
in a problem report (as in this case) tends to make one investigate
less intensely, I've found...

-Peter
Jul 18 '05 #2
"Rebecca Taylor" <jr******@hotma il.com> wrote in message
news:f4******** *************** ***@posting.goo gle.com...
I have been working with win32com on python for 2 years now. I
recently tried to modify an older script I had made which creates and
excel workbook, fills it with data and then graphs the data.

Nothing is working!
When I try to run it I get this error:

"Property '%s.%s' can not be set." % (self._username _, attr)
AttributeError: Property 'Excel.Applicat ion.visible' can not be set."

Does anyone know why this is happening? I can't figure out if windows
has changed or if win32all or the new python distribution is the
problem. Worse yet, I reinstalled my old versions of python and
win32all and that isn't working either!


The property is named 'Visible', not 'visible'.

When makepy is run, COM identifiers become case-sensitive. Perhaps your old
installation of win32com hadn't been makepy-ified, but the new one has?

See:
http://groups.google.com/groups?q=ex...&safe=off&sa=G

http://groups.google.com/groups?hl=e...oogle.com#link
13
Jul 18 '05 #3
At 04:07 PM 9/2/2003 -0400, David Rushby wrote:
"Rebecca Taylor" <jr******@hotma il.com> wrote in message
news:f4******* *************** ****@posting.go ogle.com...
I have been working with win32com on python for 2 years now. I
recently tried to modify an older script I had made which creates and
excel workbook, fills it with data and then graphs the data.

Nothing is working!
When I try to run it I get this error:

"Property '%s.%s' can not be set." % (self._username _, attr)
AttributeError: Property 'Excel.Applicat ion.visible' can not be set."

Does anyone know why this is happening? I can't figure out if windows
has changed or if win32all or the new python distribution is the
problem. Worse yet, I reinstalled my old versions of python and
win32all and that isn't working either!


The property is named 'Visible', not 'visible'.

When makepy is run, COM identifiers become case-sensitive. Perhaps your old
installation of win32com hadn't been makepy-ified, but the new one has?


I don't think this is the problem. If it were the OP would get an attribute
error. "...object has no attribute 'visible'"

Bob Gailer
bg*****@alum.rp i.edu
303 442 2625
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1515
by: R.Marquez | last post by:
I finally got around to start testing some of my old apps with Python 2.3. I've had no problems so far, but I did get one intriging warning. The following is from the Python Command Line: Python 2.3c1 (#44, Jul 18 2003, 14:32:36) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32com.client >>> ie=win32com.client.DispatchEx('InternetExplorer.Application.1') >>>...
3
7028
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel and Word examples run fine. win32com.client.Dispatch("Excel.Application") etc., but how does one know the ("<foo>.<bar>") to type in? Excel looks only vaguely like "Excel.Application" in the com browser.
1
1918
by: Jan H | last post by:
Background: I am a newbe trying to store the state of an Internet Explorer Application with the use of win32.com and python. I use python 2.3. Problem 1: The state is accessible, but not the hole state. I am missing the possibility to retrieve if the IE is minimized or not, also known as WindowState for word application. This could be found by detecting that the value of top and left is -32000, but will not help me in restoring the...
2
7102
by: Sibylle Koczian | last post by:
Hello, I've installed Python 2.4 and the win32 extensions, using administrator rights, under Windows XP in "C:\Programme". As this is a directory without spaces I didn't expect any problems. But now I can't _use_ win32com as a normal user, because normal users can't write there: PythonWin 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32. Portions Copyright 1994-2004 Mark Hammond (mhammond@skippinet.com.au) -
3
5866
by: muttu2244 | last post by:
Hi all Am trying to read an html page using win32com in the following way. from win32com.client import Dispatch ie = Dispatch("InternetExplorer.Application")
1
3727
by: koia | last post by:
Hi, I have a problem with adding attributes to a Line in an Excel drawing using the Python win32com interface. From recording in Excel I get the Macro: Sub Makro1() ActiveSheet.Shapes.AddLine(192.75, 63.75, 316.5, 110.25).Select Selection.ShapeRange.Line.ForeColor.SchemeColor = 10 Selection.ShapeRange.Line.Visible = msoTrue
4
17136
by: vithi | last post by:
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any body tell me how to give path to open an exectable application in
2
9306
by: Ray | last post by:
Hi, I need to use cell's background color. when I record a macro from excel, it shows: Rows("7:7").Select With Selection.Interior .ColorIndex = 8 .Pattern = xlSolid
11
7752
by: Bill Davy | last post by:
I am trying to edit Contacts in Outlook. This is so I can transfer numbers from my address book which is an Excel spreadsheet to my mobile phone. I came across the following snippet of code which enabled me to the contacts at least list. I had to root around to discover CdoDefaultFolderContacts (though it was guessable; how could I enumerate win32com.client.constants?). I now want to work through the Contacts in Outlook patching in...
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.