Results 1 to 4 of 4

Thread: Word Automation

  1. #1
    RoyH
    Guest

    Word Automation

    I'm working on a project using Word97 as an OLE Server to PowerBuilder(5) and VB6 modules. Word must be tightly integrated into the parent application, and I would like to disable the "Save" or "Save As..." functionality that launches automatically when Close is chosen from the Control Box or Close button on the title bar. All New, Open and Save functionality will be controlled by calls from within the parent application. I can manage Save functionality in the Menu and Toolbars via custom templates and calls from the parent app, but have yet to find a way to control the title bar buttons. I'd even be happy to eliminate them from the user's view!

    Thanks in advance!

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Word Automation

    Try Q192733, and you might find what you are looking for.

    Andrew

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Word Automation

    Slip this line in somewhere so that it is run before the file is closed
    ActiveDocument.Saved = True
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word Automation

    Gosh, I wonder what this refers to:

    hwnd = FindWindowA("OPUSApp", 0)

    This code must have been during Redmond's "Bloom County" period.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •