{"id":462,"date":"2011-08-08T16:36:07","date_gmt":"2011-08-08T16:36:07","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?p=462"},"modified":"2011-11-29T05:44:27","modified_gmt":"2011-11-29T05:44:27","slug":"new-screen-cast-series-on-tables-of-contents-in-open-xml-wordprocessingml-documents","status":"publish","type":"post","link":"https:\/\/www.ericwhite.com\/blog\/2011\/08\/08\/new-screen-cast-series-on-tables-of-contents-in-open-xml-wordprocessingml-documents\/","title":{"rendered":"New Screen-Cast Series on Tables of Contents in Open XML WordprocessingML Documents"},"content":{"rendered":"<p>One issue that has been sorely lacking in content is that of adding \/ updating TOCs in WordprocessingML documents.\u00a0 I&#8217;m starting a series of screen-casts around this issue, and I&#8217;ve just posted the first in the series.\u00a0 The first video walks through the markup for a table of contents.\u00a0 It explains how the TOC can (but is not required to) be in a content control, and why you would want to put it in a content control.\u00a0 It discusses how fields in WordprocessingML are used to represent a TOC.\u00a0 The video dissects field markup, and explains how fields can be nested (and always are nested in the case of a TOC).<\/p>\n<div id=\"scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:1d3ad895-3294-48c5-854f-0cc4ad783215\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; display: inline; float: none; padding: 0px;\">\n<div><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"633\" height=\"356\" 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\/BG8p3Pb7lh4?hl=en&amp;hd=1\" \/><embed type=\"application\/x-shockwave-flash\" width=\"633\" height=\"356\" src=\"http:\/\/www.youtube.com\/v\/BG8p3Pb7lh4?hl=en&amp;hd=1\"><\/embed><\/object><\/div>\n<div style=\"width: 633px; clear: both; font-size: .8em;\">Walks through the markup for tables in Open XML WordprocessingML<\/div>\n<\/div>\n<p>In the video, I reference three links.\u00a0 Here are those links:<\/p>\n<p><a href=\"http:\/\/bit.ly\/lTvJ6n\">Open XML Package Editor Power Tool for Visual Studio 2010<\/a><\/p>\n<p><a href=\"http:\/\/bit.ly\/oxDnbK\" class=\"broken_link\">Open XML Markup Simplifier Application<\/a><\/p>\n<p><a href=\"http:\/\/bit.ly\/qOQ6pr\" class=\"broken_link\">Deep dive into fields in WordprocessingML<\/a><\/p>\n<p>The next video will be an introduction into some code that I&#8217;ve written for PowerTools for Open XML, which enables you to more easily insert a TOC into a document.<\/p>\n<p>Update: 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\" class=\"broken_link\">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\" class=\"broken_link\">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\" class=\"broken_link\">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\" class=\"broken_link\">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\" class=\"broken_link\">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","protected":false},"excerpt":{"rendered":"<p>Introduces the first video in a series of screen-casts on tables-of-contents in Open XML WordprocessingML documents.  After generating documents, developers sometimes need to insert an updated TOC at the beginning of the 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-462","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\/462","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=462"}],"version-history":[{"count":3,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":505,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/462\/revisions\/505"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}