VPE Reports using StarZens VPE classes can 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
Preview a report
to simply run a report and show a preview use the following code
Send PreviewReport to oMyReport VPE_SHOW_NORMAL
The report will be executed and at the end a preview will be shown
Print a report
To print a report use the following code
Send PrintReport to oMyReport True/False
this will execute the report and print it. Depending on the true/false parameter a printer selection is shown
Write a report to a file
To write a report to a file use the following code
Send StartReport to oMyReport Send DoVpeWriteDoc to oMyReport "MyFile.pdf" Send DoVpeCloseDoc to oMyReport
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