Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6380 > unrolled thread

Word 2010 Save button doesn't work when started via automation

Started byD.J.W. van Kooten <vankooten@removethis.ic2.com>
First post2013-12-13 10:39 +0100
Last post2013-12-23 23:35 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Word 2010 Save button doesn't work when started via automation D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2013-12-13 10:39 +0100
    Re: Word 2010 Save button doesn't work when started via automation "Jamal" <someone@example.com> - 2013-12-13 09:07 -0500
      Re: Word 2010 Save button doesn't work when started via automation D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2013-12-23 23:35 +0100

#6380 — Word 2010 Save button doesn't work when started via automation

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2013-12-13 10:39 +0100
SubjectWord 2010 Save button doesn't work when started via automation
Message-ID<i2lla9t2t3pr71b98dus08890p33b3jkn9@4ax.com>
One of our clients has the following problem. He opens Word documents
using:

ShellExecute(NULL,String2Psz("open"),String2Psz(cFile),NULL,
NULL,SW_SHOWNORMAL)

It then appears that the Save button doesn't do anything and says
Update (I think it that is in English Word, Bijwerken in Dutch)
instead of Save. It seems to be on/off, sometimes it does work....

Does anyone have an idea what causes this?

Dick

[toc] | [next] | [standalone]


#6384

From"Jamal" <someone@example.com>
Date2013-12-13 09:07 -0500
Message-ID<l8f4as$uo4$1@speranza.aioe.org>
In reply to#6380
It could be caused by:

1. Trust Center blocking: Protected View...
2. User account does not have admin rights in windows?
3. Read Only file attribute.
    Check the file attribute before opening? Is it Read Only? Then change it 
to Read/Write.
4. Was the file opened before and MS Word was not closed properly and file 
is locked? Can you try to open the from VO in exclusive mode (before calling 
ShellExecute)?

HTH,
Jamal

"D.J.W. van Kooten"  wrote in message 
news:i2lla9t2t3pr71b98dus08890p33b3jkn9@4ax.com...

One of our clients has the following problem. He opens Word documents
using:

ShellExecute(NULL,String2Psz("open"),String2Psz(cFile),NULL,
NULL,SW_SHOWNORMAL)

It then appears that the Save button doesn't do anything and says
Update (I think it that is in English Word, Bijwerken in Dutch)
instead of Save. It seems to be on/off, sometimes it does work....

Does anyone have an idea what causes this?

Dick 

[toc] | [prev] | [next] | [standalone]


#6447

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2013-12-23 23:35 +0100
Message-ID<uhehb99mqmfv3gkne34fiu3d5iugsdlmjc@4ax.com>
In reply to#6384
On Fri, 13 Dec 2013 09:07:28 -0500, "Jamal" <someone@example.com>
wrote:

Hello Jamal,
>

Thanks for your reply. Currently it seems that it doesn't happen when
the user clicks on the file which invokes the ShellExecute, but when
he uses the "built in" doubleclick on the OLE preview of the Word
document. I told him not to do that and see if this was indeed the
cause.

Dick

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web