SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2007
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to identify a toolbar in a word doc

    Hi experts

    I need help in finding if a toolbar exists or not in word
    basically go to Word , view menu and then toolbars and then you will see different toolbars
    Now there are two types of toolbars - one which get docked automaticaly like standard , review , outlining etc

    I am able to check for the existence of these objects in my code using Window("Microsoft Powerpresentation").Winobject("Outlining").Exist

    But the problem is with the other toolbars which appear as window when we enable them. Example WordArt.. To see click Wordard in the menu and you will see a window comes for WordArt

    Object Repository and Objet SPy both show it as child window of Window("Microsoft Powerpresentation") but when I do
    Window("Microsoft Powerpresentation").Window("WordArt").Exist then it doesnt recognize it.

    The strage thing was that after identifying the object with object repository when i try to add, it doesnt get added. So I manually added with few properties like regexpwndtitle, text, regexpwndclass.

    I also tried using DP, by creating a description and giving
    odesc("Class Name").Value = "window"
    odesc("regexpwndtitle").Value = "Wordart"
    odesc("regexpwndclass").Value = "MsoCommandBar"
    odesc("text").Value = "WordArt"

    But all the above doesnt work.
    can someone help me in this??

    Thank You
    Cerebralin

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: How to identify a toolbar in a word doc

    Use Word automation COM APIs. Search for Word.Application in msdn.

  3. #3
    Member graemeal's Avatar
    Join Date
    Nov 2005
    Location
    Belfast
    Posts
    326
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to identify a toolbar in a word doc

    Graeme

  4. #4
    Member
    Join Date
    May 2007
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to identify a toolbar in a word doc

    Thanks people. I am looking into this.

    Thank You
    cerebralin

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:08 PM.

Copyright BetaSoft Inc.