Results 1 to 12 of 12

Thread: Hi. How can i create a toolbar in MS WORD as such :

  1. #1

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Hi. How can i create a toolbar in MS WORD as such :

    This is picture :

    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  2. #2
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Hi. How can i create a toolbar in MS WORD as such :

    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Hi. How can i create a toolbar in MS WORD as such :

    Keeping in mind that I've never done any Office development, it took me about 2 minutes of looking on MSDN to find this.

    http://msdn.microsoft.com/en-us/library/scff9c7c.aspx
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Hi. How can i create a toolbar in MS WORD as such :

    Quote Originally Posted by Pc_Not_Mac View Post
    That relates to an add-in for a product that costs US$349. Fine if you want to spend that sort of money but not required to build Office toolbars.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: Hi. How can i create a toolbar in MS WORD as such :

    Quote Originally Posted by jmcilhinney View Post
    Keeping in mind that I've never done any Office development, it took me about 2 minutes of looking on MSDN to find this.

    http://msdn.microsoft.com/en-us/library/scff9c7c.aspx
    Thanks .
    How can i import Office instance. ?
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Hi. How can i create a toolbar in MS WORD as such :

    If you follow the link I provided you'll see the table of contents tree on the left. It has many more branches you can follow to find related information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Hi. How can i create a toolbar in MS WORD as such :

    when i added this line:
    Code:
    Dim commandBar As Office.CommandBar
    i get the error:
    Office.CommandBar is not defined

    do i need to add some references as we do while working with the excel sheet to remove this error?

    please help

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Hi. How can i create a toolbar in MS WORD as such :

    Quote Originally Posted by HowTo View Post
    when i added this line:
    Code:
    Dim commandBar As Office.CommandBar
    i get the error:
    Office.CommandBar is not defined

    do i need to add some references as we do while working with the excel sheet to remove this error?

    please help
    If you've started by creating the correct project type, i.e. Word Add-in, then you've already got all the references you need.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Hi. How can i create a toolbar in MS WORD as such :

    ok now i am getting an error in this line of the try block:

    Code:
    commandBar = Me.CommandBars("Test")
    the error tells:

    'CommandBars' is not a member of 'WordAddIn1.ThisAddIn'

  10. #10
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Hi. How can i create a toolbar in MS WORD as such :

    Quote Originally Posted by HowTo View Post
    ok now i am getting an error in this line of the try block:

    Code:
    commandBar = Me.CommandBars("Test")
    the error tells:

    'CommandBars' is not a member of 'WordAddIn1.ThisAddIn'
    Again, I've never done any Office development so I'm not 100% sure but, from what I can see, that should be Application.CommandBars rather than Me.CommandBars
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  11. #11
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Hi. How can i create a toolbar in MS WORD as such :

    i get this when i pressed f5:

    Name:  Untitled.png
Views: 191
Size:  20.4 KB

    it means i need to install some components right?

    i get this link:
    http://www.microsoft.com/downloads/d...displaylang=en

    but this is for office 2007 but i use office 2003 and vs 2008......

    i cant get a link for the office 2003.....so the link that i gave above,will it work for me?

  12. #12
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Hi. How can i create a toolbar in MS WORD as such :

    any help?

Posting Permissions

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



Click Here to Expand Forum to Full Width