Skip to content

wxautomation

Forums Forums SIMPOL Programming wxautomation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #325
    Jean Vallee
    Participant

    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

    #2324
    JD Kromkowski
    Participant

    On 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 Vallee

    http://msdn.microsoft.com/en-us/library/af6z0wa2(v=vs.110).aspx

    may be helpful. We still use WordPerfect.

    #2325
    Jim Locker
    Member

    If 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.

    #2326
    Jean Vallee
    Participant

    Came 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.