{"id":12744,"date":"2021-12-08T13:35:37","date_gmt":"2021-12-08T16:35:37","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=12744"},"modified":"2021-12-08T13:35:37","modified_gmt":"2021-12-08T16:35:37","slug":"exporting-a-report-as-a-password-protected-file","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/","title":{"rendered":"Exporting a report as a password-protected file."},"content":{"rendered":"<h3><strong>Question:<\/strong><\/h3>\n<p>How can I generate and export a PDF report protected by password, which will later be required for opening it?<\/p>\n<h3><strong>Solution:<\/strong><\/h3>\n<div class=\"page\" title=\"Page 148\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><strong><a href=\"https:\/\/kb.elipse.com.br\/en\/category\/english\/elipse-e3-en\/reports\/\" target=\"_blank\" rel=\"noopener noreferrer\">Reports<\/a><\/strong> are <strong><a href=\"https:\/\/www.elipse.com.br\/en\/produto\/elipse-e3\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elipse E3<\/a><\/strong>&#8216;s ActiveX components called ActiveReport. They allow visualizing and printing instant values of system&#8217;s variables, as well as data stored in Databases (Alarms, Historics, Queries, and Formulas). In order to use a Report, you must first right-click <strong>Visualization &#8212; Organizer Reports<\/strong>, in <strong>Domain<\/strong> mode; then, select the option <strong>Add Report to<\/strong>, and pick the name of the desired project.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>It&#8217;s possible to generate and export a password-protected report. To use this feature safely, configure the following properties: <strong>OwnerPassword<\/strong> and <strong>UserPassword<\/strong>. These properties belong to the report&#8217;s <strong>GetExportFilter<\/strong> method.<\/p>\n<p>Hence, you must use a script similar to the one below, with the same properties and methods. Add this script to the event generating the report (usually, a <strong>Generate Report<\/strong> button&#8217;s <strong>Click<\/strong> event).<\/p>\n<p>Example:<\/p>\n<pre>set report = Application.LoadReport(\"RelatorioAlarmes\")\r\nset exportfilter = report.GetExportFilter(\"PDF\")\r\nexportfilter.OwnerPassword = \"Password\"\r\nexportfilter.UserPassword = \"Password\"\r\nreport.Export exportfilter, \"C:\\Relatorio1.pdf\"\r\n\r\n<\/pre>\n<p><strong>Notes:<\/strong><\/p>\n<ul>\n<li><strong>OwnerPassword<\/strong> property is where you define a password for users with PDF edition permissions, including printing. This property cannot remain blank.<\/li>\n<li>On the other hand, <strong>UserPassword<\/strong> property is where you define a password for users with read-only permissions. Please note that this user can&#8217;t print the file.<\/li>\n<li>For further information on these and other properties of the export filter, check the documentation of the ActiveReports vendor, as seen below.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Related articles<\/h3>\n<hr \/>\n<ul>\n<li><a href=\"https:\/\/kb.elipse.com.br\/en\/demo-application-exporting-reports\/\" target=\"_blank\" rel=\"noopener noreferrer\">Demo application: exporting reports.<\/a><\/li>\n<li><a href=\"https:\/\/help.grapecity.com\/activereports\/webhelp\/Legacy\/AR2Exports\/AR2Exports_start.htm\">ActiveReports documentation<\/a><\/li>\n<\/ul>\n<p class=\"title style-scope ytd-video-primary-info-renderer\">\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I generate and export a PDF report protected by password, which will later be required for opening it? Solution: Reports are Elipse E3&#8216;s ActiveX components called ActiveReport.&hellip;<\/p>\n","protected":false},"author":35,"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":[761,763,730],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to export a report as a password protected file.<\/title>\n<meta name=\"description\" content=\"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.\" \/>\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\/exporting-a-report-as-a-password-protected-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to export a report as a password protected file.\" \/>\n<meta property=\"og:description\" content=\"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\" \/>\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=\"2021-12-08T16:35:37+00:00\" \/>\n<meta name=\"author\" content=\"Alecson Torman Didon\u00e9\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alecson Torman Didon\u00e9\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\"},\"author\":{\"name\":\"Alecson Torman Didon\u00e9\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/d5ac1b3d558cf6442c310e2868f8a45a\"},\"headline\":\"Exporting a report as a password-protected file.\",\"datePublished\":\"2021-12-08T16:35:37+00:00\",\"dateModified\":\"2021-12-08T16:35:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\"},\"wordCount\":239,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Reports\",\"Scripts\",\"Elipse E3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\",\"name\":\"How to export a report as a password protected file.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2021-12-08T16:35:37+00:00\",\"dateModified\":\"2021-12-08T16:35:37+00:00\",\"description\":\"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exporting a report as a password-protected file.\"}]},{\"@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\/d5ac1b3d558cf6442c310e2868f8a45a\",\"name\":\"Alecson Torman Didon\u00e9\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bff9449ca5c10fcf8cc6c6d126d7fcd5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bff9449ca5c10fcf8cc6c6d126d7fcd5?s=96&d=mm&r=g\",\"caption\":\"Alecson Torman Didon\u00e9\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/alecson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to export a report as a password protected file.","description":"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.","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\/exporting-a-report-as-a-password-protected-file\/","og_locale":"en_US","og_type":"article","og_title":"How to export a report as a password protected file.","og_description":"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.","og_url":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2021-12-08T16:35:37+00:00","author":"Alecson Torman Didon\u00e9","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alecson Torman Didon\u00e9","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/"},"author":{"name":"Alecson Torman Didon\u00e9","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/d5ac1b3d558cf6442c310e2868f8a45a"},"headline":"Exporting a report as a password-protected file.","datePublished":"2021-12-08T16:35:37+00:00","dateModified":"2021-12-08T16:35:37+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/"},"wordCount":239,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Reports","Scripts","Elipse E3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/","url":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/","name":"How to export a report as a password protected file.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2021-12-08T16:35:37+00:00","dateModified":"2021-12-08T16:35:37+00:00","description":"This article illustrates how to generate and export an Elipse E3 report as a password-protected file, later required for opening and printing the report.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/exporting-a-report-as-a-password-protected-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Exporting a report as a password-protected file."}]},{"@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\/d5ac1b3d558cf6442c310e2868f8a45a","name":"Alecson Torman Didon\u00e9","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bff9449ca5c10fcf8cc6c6d126d7fcd5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff9449ca5c10fcf8cc6c6d126d7fcd5?s=96&d=mm&r=g","caption":"Alecson Torman Didon\u00e9"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/alecson\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/12744"}],"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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=12744"}],"version-history":[{"count":3,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/12744\/revisions"}],"predecessor-version":[{"id":12746,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/12744\/revisions\/12746"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=12744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=12744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=12744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}