First, thank you for your answer, you really remove me a spine of the foot.
I have to use ISensLogon for this reason
http://technet2.microsoft.com/WindowsVista/en/library/6ec4ec6d-6b84-44c9-b3af-116589a42b861033.mspx?mfr=true
today I use Winlogon Notification package to catch Logon and Logoff
hi! newbie here. from the subject, there is an error in the code. could anyone
please exlpain why? here's the code:
import win32com.client
filename = 'D:\\FR23\\tickets\\07120306-IEEEToCGenerator\\test.doc'
wordapp = win32com.client.Dispatch(Word.Application) # Create new Word Object
This works on XP and Vista.
import win32com.client
import win32com.server.policy
import pythoncom
## from Sens.h
SENSGUID_PUBLISHER = {5fee1bd6-5b9b-11d1-8dd2-00aa004abd5e}
SENSGUID_SUBSCRIBER_LCE ={d3938ab0-5b9d-11d1-8dd2-00aa004abd5e}
SENSGUID_SUBSCRIBER_WININET =
I can't test this right now, but just looking at the code it would appear
that wordapp.Documents.Add() is returning None instead of a word document
object. Take out the close and quit lines and run it with python -i or
type it in interactively and then you can do a dir() on the worddoc object
Hi there,
I have the below python code that was working via
Windows Task Scheduler on Windows 2000 Terminal
Server:
import os, commands
from win32com.client import Dispatch
myExcel.Workbooks.Add('C:/JD/billing/Billing-Report-'
+ str(today) + '.xls')
le dahut wrote:
First, thank you for your answer, you really remove me a spine of the foot.
I have to use ISensLogon for this reason
http://technet2.microsoft.com/WindowsVista/en/library/6ec4ec6d-6b84-44c9-b3af-116589a42b861033.mspx?mfr=true
today I use Winlogon Notification package to catch
a_n_s_h_a_n wrote:
hi! newbie here. from the subject, there is an error in the code.
could anyone please exlpain why? here's the code:
Your code works fine for me, at least through the Content stuff. You
might try setting wordapp.Visible to 1 so you can see what is going on.
For example,
Hi, I'm running the program Pymol (written in python) on Windows Vista, and
in trying to run one of its plugins, I em encountering the following error:
Error: 3
WindowsError Exception in Tk callback
Function: function lambda at 0x027C6DF0 (type: type 'function')
Args: ()
Traceback (innermost
Kirk Vander Meulen wrote:
Hi, I'm running the program Pymol (written in python) on Windows
Vista, and in trying to run one of its plugins, I em encountering the
following error:
...
WindowsError: [Errno 193] %1 is not a valid Win32 application
Probably not all of that is relevant, but I
Tim Roberts wrote:
Roger Upole wrote:
This works on XP and Vista.
Well, this clearly proves that the COM path isn't as hard as I said it
was!
This is a great sample app that demonstrates several things very well.
Is there a Wiki where we could put this for posterity?
win32com.de
10 matches
Mail list logo