{"id":859,"date":"2008-04-16T16:38:07","date_gmt":"2008-04-16T23:38:07","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/books\/?p=859"},"modified":"2008-04-17T20:12:23","modified_gmt":"2008-04-18T03:12:23","slug":"1417-viewinfo-class","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/1417-viewinfo-class\/","title":{"rendered":"14.16 ViewInfo Class"},"content":{"rendered":"<p>Crystal Reports also gives you a class called ViewInfo for deriving more information about the report&#8217;s status. It lets you find out if the user is viewing a page in the main page, a subreport, or a drill down view. You can also determine the current page number and the last page number (if it is known). The properties of the ViewInfo class are in Table 14.x.<\/p>\n<p><strong>Table 14-11. ViewInfo class properties.<\/strong><\/p>\n<table border=\"1\">\n<tr>\n<th>Property<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>IsLastPageNumberKnown<\/td>\n<td>Is the last page number known for the report?<\/td>\n<\/tr>\n<tr>\n<td>IsMainReportDrillDownView<\/td>\n<td>Is the report in a main report drill down view?<\/td>\n<\/tr>\n<tr>\n<td>IsMainReportView<\/td>\n<td>Is the report in a main report view?<\/td>\n<\/tr>\n<tr>\n<td>IsSubreportDrillDownView<\/td>\n<td>Is the report in a subreport drill down view?<\/td>\n<\/tr>\n<tr>\n<td>IsSubreportView<\/td>\n<td>Is the report in a subreport view?<\/td>\n<\/tr>\n<tr>\n<td>LastPageNumber<\/td>\n<td>The reports last page number.<\/td>\n<\/tr>\n<tr>\n<td>PageNumber<\/td>\n<td>The current page number<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Crystal Reports also gives you a class called ViewInfo for deriving more information about the report&#8217;s status. It lets you find out if the user is viewing a page in the main page, a subreport, or a drill down view. You can also determine the current page number and the last page number (if it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,40],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-chapter-14-learning-the-report-object-models","category-crystal-reportsnet-2008","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/859","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=859"}],"version-history":[{"count":0,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}