{"id":16306,"date":"2024-04-19T15:39:45","date_gmt":"2024-04-19T18:39:45","guid":{"rendered":"https:\/\/kb.elipse.com.br\/en\/?p=16306"},"modified":"2024-04-19T15:39:45","modified_gmt":"2024-04-19T18:39:45","slug":"print-orientation-in-the-section-report","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/","title":{"rendered":"Print orientation in the Section Report."},"content":{"rendered":"<h3 align=\"justify\"><strong>Question:<\/strong><\/h3>\n<p align=\"justify\">How can I pick the right orientation (Portrait or Landscape) to print a Section Report from <a href=\"https:\/\/www.elipse.com.br\/en\/produto\/elipse-e3\/\" target=\"_blank\" rel=\"noopener\">Elipse E3<\/a>?<\/p>\n<h3 align=\"justify\"><strong>Solution:<\/strong><\/h3>\n<p>To choose the print orientation for you report, access the section report&#8217;s configurations in <a href=\"https:\/\/kb.elipse.com.br\/en\/category\/english\/elipse-e3-en\/studio-2\/\" target=\"_blank\" rel=\"noopener\"><strong>Studio<\/strong><\/a>, and then click <strong>Configure Report<\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-15728 size-full\" src=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/1_15604EN.png\" alt=\"\" width=\"615\" height=\"161\" srcset=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/1_15604EN.png 615w, https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/1_15604EN-300x79.png 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<p>This action will open a window. On it, select the option <strong>Printer Settings<\/strong> on the side bar. For <strong>Orientation<\/strong>, pick between Portrait and Landscape.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-15729 size-full\" src=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/2_15604EN.png\" alt=\"\" width=\"529\" height=\"398\" srcset=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/2_15604EN.png 529w, https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/2_15604EN-300x226.png 300w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/p>\n<p>To edit this option at run time, you must change\u00a0 <em>Orientation<\/em> property on the report&#8217;s <strong>PageSettings<\/strong>. To do so, you must create a script in this report that alters its properties.<\/p>\n<p>Example:<\/p>\n<ol>\n<li>Create an InternalTag (e.g.: Pagetype);<\/li>\n<li>In the report, access Script Editor window (button with white sheet and blue engine).<img loading=\"lazy\" class=\"aligncenter wp-image-15730 size-full\" src=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/3_15604EN.png\" alt=\"\" width=\"875\" height=\"280\" srcset=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/3_15604EN.png 875w, https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/3_15604EN-300x96.png 300w, https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/3_15604EN-768x246.png 768w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/li>\n<li>Select\u00a0 <strong>ActiveReport Document<\/strong> and, inside\u00a0 <em>ReportStart <\/em>event, add the script to edit the following property, according to the desired orientations &#8220;rpt.PageSettings.Orientation&#8221;.<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"Editor de scripts do relat\u00f3rio.\" data-enlighter-title=\"Editor de scripts do relat\u00f3rio.\">Sub ActiveReport_ReportStart\r\ndim Application = Activator.CreateInstance(Type.GetTypeFromProgID(\"Reports.E3ApplicationLink\"))\r\nApplication.LinkWithApplication(rpt)\r\n'Orienta\u00e7\u00e3o da impress\u00e3o\r\nIf Application.GetViewerValue(\"PageType\") = 1 then\r\nrpt.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Portrait\r\nElse\r\nrpt.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Landscape\r\nEnd If\t\r\nEnd Sub<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"Script do E3 para alterar o tag de orienta\u00e7\u00e3o.\" data-enlighter-title=\"Script do E3 para alterar o tag de orienta\u00e7\u00e3o.\">Sub CommandButton1_Click()\r\nIF MsgBox(\"Imprimir em modo paisagem?\", vbQuestion+vbYesNo, \"Orienta\u00e7\u00e3o da p\u00e1gina\") = vbYes THEN\r\n  Application.Item(\"PageType\").Value = 2\r\nELSE\r\n  Application.Item(\"PageType\").Value = 1\r\nEnd IF\r\nSet Report = Application.LoadReport(\"RelatorioSecaoDetalhado\")\r\nReport.Print()\r\nEnd Sub<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I pick the right orientation (Portrait or Landscape) to print a Section Report from Elipse E3? Solution: To choose the print orientation for you report, access the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[1220,730],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Print orientation in the Section Report.<\/title>\n<meta name=\"description\" content=\"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Print orientation in the Section Report.\" \/>\n<meta property=\"og:description\" content=\"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-19T18:39:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/1_15604EN.png\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Print orientation in the Section Report.\",\"datePublished\":\"2024-04-19T18:39:45+00:00\",\"dateModified\":\"2024-04-19T18:39:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\"},\"wordCount\":152,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Section Report\",\"Elipse E3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\",\"name\":\"Print orientation in the Section Report.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2024-04-19T18:39:45+00:00\",\"dateModified\":\"2024-04-19T18:39:45+00:00\",\"description\":\"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Print orientation in the Section Report.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Print orientation in the Section Report.","description":"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/","og_locale":"en_US","og_type":"article","og_title":"Print orientation in the Section Report.","og_description":"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.","og_url":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2024-04-19T18:39:45+00:00","og_image":[{"url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2024\/01\/1_15604EN.png"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Print orientation in the Section Report.","datePublished":"2024-04-19T18:39:45+00:00","dateModified":"2024-04-19T18:39:45+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/"},"wordCount":152,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Section Report","Elipse E3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/","url":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/","name":"Print orientation in the Section Report.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2024-04-19T18:39:45+00:00","dateModified":"2024-04-19T18:39:45+00:00","description":"This article shows how to pick the right orientation (Portrait or Landscape) to print a Section Report in Elipse E3.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/print-orientation-in-the-section-report\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Print orientation in the Section Report."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/16306"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=16306"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/16306\/revisions"}],"predecessor-version":[{"id":16307,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/16306\/revisions\/16307"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=16306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=16306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=16306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}