1 Reply Latest reply: Jun 12, 2013 7:40 AM by mmargeta RSS

    How to catch if Update Design is needed in InCopy with VB?

    mmargeta Community Member

      I would like to pop-up a message for user if "Update Design" of acive document is needed while working in InCopy. I'm using my client application in VB for that. I tried with assignments but with no luck, also with document methods but probably I'm looking into it and don't see it.

       

      Any help is appreciated.

       

      Kind regards,

      Marko

        • 1. Re: How to catch if Update Design is needed in InCopy with VB?
          mmargeta Community Member

          Ok. For now I did it over Update Design menu item:

           

          '-------

          Dim myApplication As InCopy.Application

          Dim myMenu As InCopy.Menu

          Dim myFileMenu As InCopy.Submenu

          Dim myUpdateDesignMenu As InCopy.MenuItem

           

          myApplication = CreateObject("InCopy.Application.CS6")

           

          myMenu = myApplication.Menus.Item("Main")

          myFileMenu = myMenu.Submenus.Item("File")

          myUpdateDesignMenu = myFileMenu.MenuItems.Item("Update Design")

           

          'Check if needed update design

          If myUpdateDesignMenu.AssociatedMenuAction.Enabled() Then

              myUpdateDesignMenu.AssociatedMenuAction.Invoke()

          End If

          '-------

           

          If anyone knows for a better way please post.

           

          Regards,

          Marko