Forums › Forums › SIMPOL Programming › wxautomation
- This topic has 3 replies, 3 voices, and was last updated 12 years, 10 months ago by
Jean Vallee.
- AuthorPosts
- October 4, 2013 at 7:03 pm #325
Jean Vallee
ParticipantAnyone trying to automate MS Word thru wxautomation successfully? Got all working (thanks Ian!) except for syntax to close a document without saving. Any ideas will be greatly appreciated. Jean Vallee
October 4, 2013 at 9:52 pm #2324JD Kromkowski
ParticipantOn 10/04/13 3:03 PM, JV wrote:
> Anyone trying to automate MS Word thru wxautomation successfully?
> Got all working (thanks Ian!) except for syntax to close a document
> without saving.
> Any ideas will be greatly appreciated.
> Jean Valleehttp://msdn.microsoft.com/en-us/library/af6z0wa2(v=vs.110).aspx
may be helpful. We still use WordPerfect.
October 5, 2013 at 12:11 am #2325Jim Locker
MemberIf you search back on this board, you will find that a couple years ago I
addressed that issue on this board. I wound up concluding that
wxautomation did not support a number of things I needed, so I wound up
building a piece of Visual Basic "middleware" that handled what needed to
be done. I posted the code here.October 6, 2013 at 1:17 pm #2326Jean Vallee
ParticipantCame up with the answer finally. You have to lie to Word by telling it
it is already saved.wxautomation1var.putproperty(property="Saved",error=e,"True")
Then you can close and it will not save your changes.
Jean
On 10/4/2013 3:03 PM, JV wrote:
> Anyone trying to automate MS Word thru wxautomation successfully?
> Got all working (thanks Ian!) except for syntax to close a document
> without saving.
> Any ideas will be greatly appreciated.
> Jean Vallee - AuthorPosts
- You must be logged in to reply to this topic.