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