{"id":103,"date":"2015-01-30T13:02:51","date_gmt":"2015-01-30T18:02:51","guid":{"rendered":"http:\/\/salzlechner.com\/dev\/?p=103"},"modified":"2016-03-11T07:11:50","modified_gmt":"2016-03-11T12:11:50","slug":"vpe-reports-printingpreviewing-etc","status":"publish","type":"post","link":"http:\/\/salzlechner.com\/dev\/2015\/01\/30\/vpe-reports-printingpreviewing-etc\/","title":{"rendered":"VPE Reports Printing\/Previewing, etc"},"content":{"rendered":"<p>VPE Reports using StarZens VPE\u00a0classes\u00a0can be viewed on screen, printed to any printer, saved to different file formats. This is a quick overview on how to execute a report for different output options<\/p>\n<h2><strong>Preview a report<\/strong><\/h2>\n<p>to simply run a\u00a0 report and show a preview use the following code<\/p>\n<pre class=\"lang:default decode:true\">Send PreviewReport to oMyReport VPE_SHOW_NORMAL<\/pre>\n<p>The report \u00a0will be executed and at the end a preview will be shown<\/p>\n<h2>Print a report<\/h2>\n<p>To print a report use the following code<\/p>\n<pre class=\"lang:default decode:true \">Send PrintReport to oMyReport True\/False<\/pre>\n<p>this will execute the report and print it. Depending on the true\/false parameter a printer selection is shown<\/p>\n<p>&nbsp;<\/p>\n<h2>Write a report to a file<\/h2>\n<p>To write a report to a file use the following code<\/p>\n<pre class=\"lang:default decode:true\">Send StartReport to oMyReport\r\nSend DoVpeWriteDoc to oMyReport \"MyFile.pdf\"\r\nSend DoVpeCloseDoc to oMyReport\r\n<\/pre>\n<p>This will execute the report using StartReport. The resulting document will then be written to a PDF document and then we close the VPE document to release it from memory<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick overview on how to execute a report for different output options<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","ngg_post_thumbnail":0,"footnotes":""},"categories":[6,23],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-dataflex","category-vpe-for-vdf"],"_links":{"self":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":3,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":284,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/103\/revisions\/284"}],"wp:attachment":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}