View blogs, recent posts, and archived drafts--word 2007 Advanced Applications

Source: Internet
Author: User

View blogs, recent posts, and archived drafts--word 2007 Advanced Applications

Since both view blogs and view recent posts are "outsourced" to Internet Explorer, we can simply call the System.Diagnostics.Process.Start () method and pass in the value of the URL property of the selected object:

  

For an archive draft, we can use the Documents.Open () method to open and pass the value of the path attribute for the selected archive draft:

  

It is important to note that for the Documents.Open () method, except for the first argument, the other parameters are optional, but because C # does not support this optional parameter, we have to pass type.missing to them.

At this point, the development of the "my Blog" sidebar will be over, though we want to make it stronger. As a Word 2007 extension, the "my Blog" sidebar now has a noticeable problem: It starts with Word 2007, not because of the user's needs, and when it's turned off, it doesn't start again unless you reopen word 2007, this is unacceptable to the user. Next time, we'll explore the extension of Word 2007 and try to add a button on it to take care of the "my Blog" sidebar Ribbon.

The next article will introduce the Ribbon Designer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.