[python-win32] MSWord: Server Busy
by Bill Papadopoulos other posts by this author
Sep 30 2004 8:32AM messages near this date
RE: [python-win32] accessing application object from
OnConnectionmethod in another Class
|
Re: [python-win32] MSWord: Server Busy
This is a multi-part message in MIME format.
------=_NextPart_000_00DA_01C4A6E1.37616A40
Content-Type: text/plain;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
> >Hi !
> >"server busy" c'est souvent du au temps de lancement de ms-word
> > "server busy" it's often because ms-word is slow to begin to run.
> >Ajoute/Add "time.sleep(5)"
> >Michel Claveau
Hello Michael and thank your for responding,
This is what I do before I get the "Server Busy" message:
#Setting TopMargin
wordApp.ActiveDocument.PageSetup.TopMargin =3D 5
where wordApp is my Dispatch object.
I 've already tried time.sleep() after setting the Margin which resulted =
to a "server busy" message and then the script "slept".
Also, I tried time.sleep() before setting the Margin which resulted=20
to make the script wait and then to get the "server busy" message.
I need something like:
while waiting for margin to be set:
time.sleep()
Any suggestions?=20
Anyway, thanks again!
Vax
____________________
b_papadopoulos@[...].gr
vax@[...].gr
------=_NextPart_000_00DA_01C4A6E1.37616A40
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML> <HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-7">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE> </STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> <FONT size=3D2></FONT><BR>>>Hi !<BR><BR>>>"server =
busy" =20
c'est souvent du au temps de lancement de ms-word</DIV>
<DIV> >> "server busy" it's often because ms-word is slow to =
begin to=20
run.</DIV>
<DIV> >>Ajoute/Add "time.sleep(5)"</DIV>
<DIV> >>Michel Claveau</DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>Hello Michael and thank your for =
responding,</FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>This is what I do before I get the "Server Busy"=20
message:</FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>#Setting TopMargin</FONT></DIV>
<DIV> <FONT size=3D2>wordApp.ActiveDocument.PageSetup.TopMargin =3D =
5</FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>where wordApp is my Dispatch object.</FONT></DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>I 've already tried time.sleep() after setting the =
Margin=20
which resulted </FONT> </DIV>
<DIV> <FONT size=3D2>to a "server busy" message and then the script=20
"slept".</FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>Also, I tried time.sleep() before setting the Margin =
which=20
resulted </FONT> </DIV>
<DIV> <FONT size=3D2>to make the script wait and then to get the "server =
busy"=20
message.</FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>I need something like:</FONT></DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>while waiting for margin to be set:</FONT></DIV>
<DIV> <FONT size=3D2> time.sleep()</FONT></DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>Any suggestions? </FONT></DIV>
<DIV> <FONT size=3D2>Anyway, thanks again!</FONT></DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2>Vax</FONT></DIV>
<DIV> <FONT size=3D2>____________________<BR><A=20
href=3D"mailto:b_papadopoulos@iris.gr"> b_papadopoulos@[...].gr</A><BR><A=20
href=3D"mailto:vax@cls.gr"> vax@[...].gr</A></FONT></DIV>
<DIV> <FONT size=3D2></FONT> </DIV>
<DIV> <FONT size=3D2><BR></FONT> </DIV></BODY></HTML>
------=_NextPart_000_00DA_01C4A6E1.37616A40--
Attachments:
unknown1
Thread:
Bill Papadopoulos
Fabricio Guzman
Mark Hammond
|