{"id":625,"date":"2020-04-30T16:15:46","date_gmt":"2020-04-30T08:15:46","guid":{"rendered":"http:\/\/www.yohz.com\/blogs\/?p=625"},"modified":"2020-04-30T16:25:51","modified_gmt":"2020-04-30T08:25:51","slug":"removing-the-functions-listing-and-details-from-db-doc-pdf-and-word-reports","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2020\/04\/30\/removing-the-functions-listing-and-details-from-db-doc-pdf-and-word-reports\/","title":{"rendered":"Removing the functions listing and details from DB Doc PDF and Word reports"},"content":{"rendered":"<p>In this post, we&#8217;ll show you how to remove the functions listing and details from the DB Doc PDF and Word reports.\u00a0 The final templates without the functions can be downloaded here:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.yohz.com\/downloads\/dbdoc\/templates\/PostgreSQL%20-%20A4%20-%20portrait_no_functions.fr3\">portrait template<\/a><\/li>\n<li><a href=\"http:\/\/www.yohz.com\/downloads\/dbdoc\/templates\/PostgreSQL%20-%20A4%20-%20landscape_no_functions.fr3\">landscape template<\/a><\/li>\n<\/ul>\n<p>We will be modifying the A4 &#8211; portrait template in this example.\u00a0 There are 2 parts to this &#8211; we want to remove the functions listing:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-626\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_01.png\" alt=\"\" width=\"608\" height=\"388\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_01.png 608w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_01-300x191.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/p>\n<p>and also the functions details:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-627\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02a.png\" alt=\"\" width=\"600\" height=\"315\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02a.png 600w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02a-300x158.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-628\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02.png\" alt=\"\" width=\"598\" height=\"389\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02.png 598w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_02-300x195.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>First, select the default template and click on the <strong>Edit<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-630\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03a.png\" alt=\"\" width=\"783\" height=\"467\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03a.png 783w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03a-300x179.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03a-768x458.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03a-624x372.png 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Save this template under a new name, so that we can still use the default template and also this template that excludes the functions details.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-629\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03.png\" alt=\"\" width=\"773\" height=\"533\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03.png 773w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03-300x207.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03-768x530.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_03-624x430.png 624w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To remove the listing, click on the <strong>TableOfContents<\/strong> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-631\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_04.png\" alt=\"\" width=\"543\" height=\"154\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_04.png 543w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_04-300x85.png 300w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Scroll down the report until you see the <strong>TOCFunctionHeader<\/strong> band.\u00a0 Click on the band, and set its <strong>Visible<\/strong> property to <strong>False<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-632\" style=\"margin-top: 0.857143rem; margin-bottom: 0.857143rem;\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_05.png\" alt=\"\" width=\"878\" height=\"430\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_05.png 878w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_05-300x147.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_05-768x376.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_05-624x306.png 624w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Repeat the same process for the 2 bands below the <strong>TOCFunctionHeader<\/strong> band i.e. click each time on the <strong>TOCFunction<\/strong> and <strong>TOCFunctionFooter<\/strong> bands, and set the <strong>Visible<\/strong> property to <strong>False<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-633\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_06.png\" alt=\"\" width=\"878\" height=\"430\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_06.png 878w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_06-300x147.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_06-768x376.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_06-624x306.png 624w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Click on the <strong>Preview<\/strong> button to preview the report.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-634 alignnone\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_07a.png\" alt=\"\" width=\"316\" height=\"155\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_07a.png 316w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_07a-300x147.png 300w\" sizes=\"(max-width: 316px) 100vw, 316px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The functions listing should no longer appear.\u00a0 That takes care of the listing.\u00a0 To remove the function details, first click on the <strong>SchemaObjects<\/strong> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-635\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_08.png\" alt=\"\" width=\"744\" height=\"272\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_08.png 744w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_08-300x110.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_08-624x228.png 624w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Locate the <strong>FunctionsListingHeader<\/strong> band.\u00a0 Again, you will need to set this band&#8217;s visibility to false, and that of the next 5 bands (<strong>DetailData4<\/strong>, <strong>FunctionGroupHeader<\/strong>, <strong>FunctionDetails<\/strong>, <strong>FunctionDetailsDefinition<\/strong>, and <strong>FunctionDetailsComment<\/strong>).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-636\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_18.png\" alt=\"\" width=\"1018\" height=\"944\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_18.png 1018w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_18-300x278.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_18-768x712.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_18-624x579.png 624w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Click <strong>Preview<\/strong> again and the function details should no longer be displayed.\u00a0 However, there are 2 empty pages between the sequences and trigger functions pages because the function bands start a new page when they print (even though they are not visible, the underlying code still runs).<\/p>\n<p>To remove the first empty page ,select the <strong>FunctionsListingHeader<\/strong> band, and click on the <strong>Events<\/strong> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-637\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13.png\" alt=\"\" width=\"1091\" height=\"320\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13.png 1091w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13-300x88.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13-768x225.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13-1024x300.png 1024w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_13-624x183.png 624w\" sizes=\"(max-width: 1091px) 100vw, 1091px\" \/><br \/>\nDouble click on the <strong>FunctionsListingHeaderOnBeforePrint<\/strong> item.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-638 alignnone\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_14.png\" alt=\"\" width=\"309\" height=\"320\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_14.png 309w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_14-290x300.png 290w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/p>\n<p>This brings up the code editor, where we can see that the report template starts the functions listing on a new page, causing us to have a blank page when the listing is not displayed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-639\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_15.png\" alt=\"\" width=\"819\" height=\"357\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_15.png 819w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_15-300x131.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_15-768x335.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_15-624x272.png 624w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To remove the blank page, comment out the <strong>Engine.NewPage;<\/strong> line by adding two forward slashes at the beginning of that line i.e.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-640\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_16.png\" alt=\"\" width=\"628\" height=\"271\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_16.png 628w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_16-300x129.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_16-624x269.png 624w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Repeat the same process for the <strong>FunctionsGroupHeader<\/strong> band.\u00a0 In the <strong>OnBeforePrint<\/strong> event, comment out the line that starts a new page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-641\" src=\"http:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_17.png\" alt=\"\" width=\"708\" height=\"329\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_17.png 708w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_17-300x139.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/04\/dbdoc_remove_functions_17-624x290.png 624w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can follow the same steps if you want to remove any other sections from the report.\u00a0 Note that the PDF and Word reports share the same template, so you only need to modify one template.<\/p>\n<p>If you require further assistance, do drop us a line at <a href=\"mailto:support@yohz.com\">support@yohz.com<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2020\/04\/30\/removing-the-functions-listing-and-details-from-db-doc-pdf-and-word-reports\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2020\/04\/30\/removing-the-functions-listing-and-details-from-db-doc-pdf-and-word-reports\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In this post, we&#8217;ll show you how to remove the functions listing and details from the DB Doc PDF and Word reports.\u00a0 The final templates without the functions can be downloaded here: portrait template landscape template We will be modifying the A4 &#8211; portrait template in this example.\u00a0 There are 2 parts to this &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[3],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/625"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":3,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/625\/revisions\/644"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}