{"id":464,"date":"2011-08-10T16:58:02","date_gmt":"2011-08-10T16:58:02","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?p=464"},"modified":"2011-11-29T05:20:10","modified_gmt":"2011-11-29T05:20:10","slug":"second-screen-cast-in-series-on-adding-updating-tables-of-contents-in-open-xml-wordprocessingml-documents","status":"publish","type":"post","link":"https:\/\/www.ericwhite.com\/blog\/2011\/08\/10\/second-screen-cast-in-series-on-adding-updating-tables-of-contents-in-open-xml-wordprocessingml-documents\/","title":{"rendered":"Second Screen-Cast in Series on Adding \/ Updating Tables of Contents in Open XML WordprocessingML Documents"},"content":{"rendered":"<p>I\u2019ve just published the second screen-cast in this series on updating the TOC of a WordprocessingML document.\u00a0 In the first screen-cast, I explored the markup around TOCs.\u00a0 In this second screen-cast, I discuss the markup a bit more, and then introduce some code that makes it easy to add a TOC to a document.\u00a0 This code will become part of the PowerTools for Open XML project.<\/p>\n<p>As part of the definition of each TOC, you specify a set of switches that Word uses as instructions on how to construct the TOC.\u00a0 This screen-cast discusses the TOC switches, and shows how to find out more about them from the text of the Open XML standard.<\/p>\n<p>You can find the code that I discuss in this video on <a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/10\/exploring-tables-of-contents-in-open-xml-wordprocessingml-documents-part-2.aspx\">OpenXMLDeveloper.org<\/a>.<\/p>\n<div id=\"scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:3f68b428-1b6b-4add-993e-bfd9671bede5\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; display: inline; float: none; padding: 0px;\">\n<div><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"632\" height=\"354\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/qhsVNV8uFUk?hl=en&amp;hd=1\" \/><embed type=\"application\/x-shockwave-flash\" width=\"632\" height=\"354\" src=\"http:\/\/www.youtube.com\/v\/qhsVNV8uFUk?hl=en&amp;hd=1\"><\/embed><\/object><\/div>\n<div style=\"width: 632px; clear: both; font-size: .8em;\">Discusses WordprocessingML TOC markup, and introduces some PowerTools for Open XML code that makes it easy to add a TOC to a document.<\/div>\n<\/div>\n<p>Now, back to editing the third screen-cast in this series.\u00a0 Looks as though there are going to be four.<\/p>\n<p>Here is the complete list of screen-casts in this series.<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"1\" style=\"border-collapse: collapse; border: none;\">\n<tbody>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; font-weight: bold;\">\n<p>Link<\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; font-weight: bold;\">\n<p>Summary<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p><a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/08\/exploring-tables-of-contents-in-open-xml-wordprocessingml-documents.aspx\">Screen-cast #1<\/a><\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p>Explains the markup of tables-of-contents. TOCs use field markup.<br \/>See <a target=\"_blank\" href=\"https:\/\/www.ericwhite.com\/blog\/2011\/04\/25\/deep-dive-into-open-xml-wordprocessingml-fields-and-hyperlinks\/\">Deep dive into OpenXML Fields<\/a> for more info.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p><a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/10\/exploring-tables-of-contents-in-open-xml-wordprocessingml-documents-part-2.aspx\">Screen-cast #2<\/a><\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p>Presents some sample code that shows how to insert TOC markup into a document.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p><a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/15\/exploring-tables-of-contents-in-open-xml-wordprocessingml-documents-part-3.aspx\">Screen-cast #3<\/a><\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p>Shows how to use Word Automation to update the TOC.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p><a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/22\/exploring-tables-of-contents-in-openxml-wordprocessingml-documents-part-4.aspx\">Screen-cast #4<\/a><\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p>Shows how to use Word Automation Services to update the TOC.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p><a href=\"http:\/\/openxmldeveloper.org\/home2\/bm8qcmjy\/public_html\/blog\/b\/openxmldeveloper\/archive\/2011\/08\/24\/updating-the-toc-in-a-wordprocessingml-document-using-an-autoopen-macro.aspx\">Screen-cast #5<\/a><\/p>\n<\/td>\n<td valign=\"top\" style=\"border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt;\">\n<p>Shows how to use an AutoOpen macro to update the TOC whenever any document that contains a TOC is opened.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>-Eric<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Second screen-cast in a series on adding \/ updating tables-of-contents in Open XML WordprocessingML documents.  This screen-cast introduces some code in PowerTools for Open XML that makes it easy to insert a TOC into a document.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_s2mail":"","footnotes":""},"categories":[3,9,5],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-open-xml","category-powertools","category-wordprocessingml"],"_links":{"self":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":9,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/464\/revisions\/499"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}