{"id":440,"date":"2008-01-04T18:24:34","date_gmt":"2008-01-05T01:24:34","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/crystal-reports-xi\/3-6-crystalreportviewer-properties-and-methods\/"},"modified":"2010-11-17T18:27:43","modified_gmt":"2010-11-18T01:27:43","slug":"3-6-crystalreportviewer-properties-and-methods","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/3-6-crystalreportviewer-properties-and-methods\/","title":{"rendered":"3.06 CrystalReportViewer Properties and Methods"},"content":{"rendered":"<p><b>Table 3-3. CrystalReportViewer Properties<\/b><\/p>\n<table border=\"1\">\n<tr>\n<th>Property<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>DisplayBackgroundEdge<\/td>\n<td>A background edge creates a border around the edge of the report page in preview mode. Setting this to False makes the edge of the page flush against the viewer&#8217;s window.<\/td>\n<\/tr>\n<tr>\n<td>DisplayGroupTree<\/td>\n<td>Toggles the Group Tree window on and off.<\/td>\n<\/tr>\n<tr>\n<td>DisplayToolbar<\/td>\n<td>Toggles the toolbar on and off.<\/td>\n<\/tr>\n<tr>\n<td>EnableDrillDown<\/td>\n<td>Sets whether the user can drill down on reports.<\/td>\n<\/tr>\n<tr>\n<td>ShowCloseButton<\/td>\n<td>Sets whether the Close button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowExportButton<\/td>\n<td>Sets whether the Export button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowGotoPageButton<\/td>\n<td>Sets whether the GotoPage button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowGroupTreeButton<\/td>\n<td>Sets whether the GroupTree button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowPrintButton<\/td>\n<td>Sets whether the Print button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowRefreshButton<\/td>\n<td>Sets whether the Refresh button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowTextSearchButton<\/td>\n<td>Sets whether the Search button is available.<\/td>\n<\/tr>\n<tr>\n<td>ShowZoomButton<\/td>\n<td>Sets whether the Zoom button is available.<\/td>\n<\/tr>\n<\/table>\n<p>         <b>Table 3-4 CrystalReportViewer Methods<\/b><\/p>\n<table border=\"1\">\n<tr>\n<th>Method<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>CloseView()<\/td>\n<td>Pass a null value to close the current view. Pass a view name to close a specific view.<\/td>\n<\/tr>\n<tr>\n<td>DrillDownOnGroup()<\/td>\n<td>Drill down on a specific group. See Chapter 12 for details on implementing this method.<\/td>\n<\/tr>\n<tr>\n<td>ExportReport()<\/td>\n<td>Show the Export dialog box.<\/td>\n<\/tr>\n<tr>\n<td>PrintReport()<\/td>\n<td>Show the Print dialog box.<\/td>\n<\/tr>\n<tr>\n<td>RefreshReport()<\/td>\n<td>Refresh the report view. The user will be prompted for the parameters and logon information again.<\/td>\n<\/tr>\n<tr>\n<td>SearchForText()<\/td>\n<td>Pass a string to search for. If found, it returns True and moves to the page that has the string.<\/td>\n<\/tr>\n<tr>\n<td>ShowFirstPage()<\/td>\n<td>Move to the first page of the report.<\/td>\n<\/tr>\n<tr>\n<td>ShowGroupTree()<\/td>\n<td>Shows the Group Tree window. It doesn&#8217;t take any parameters. There is no corresponding method to hide it.<\/td>\n<\/tr>\n<tr>\n<td>ShowLastPage()<\/td>\n<td>Move to the last page of the report.<\/td>\n<\/tr>\n<tr>\n<td>ShowNextPage()<\/td>\n<td>Move to the next page of the report.<\/td>\n<\/tr>\n<tr>\n<td>ShowNthPage()<\/td>\n<td>Pass an integer to move to that page number.<\/td>\n<\/tr>\n<tr>\n<td>ShowPreviousPage()<\/td>\n<td>Move to the previous page of the report.<\/td>\n<\/tr>\n<tr>\n<td>Zoom()<\/td>\n<td>Pass an integer to set the zoom level.<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Table 3-3. CrystalReportViewer Properties Property Description DisplayBackgroundEdge A background edge creates a border around the edge of the report page in preview mode. Setting this to False makes the edge of the page flush against the viewer&#8217;s window. DisplayGroupTree Toggles the Group Tree window on and off. DisplayToolbar Toggles the toolbar on and off. EnableDrillDown [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,2],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-chapter-3-integrating-reports","category-crystal-reportsnet-2003","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":1,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":1532,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/440\/revisions\/1532"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}