Table of Contents
vreport_print_to_buffer()
Declaration
string vreport_print_to_buffer( vint32 inVReportID, int inType, [int inStartIndex [, int inEndIndex]] )
Parameters
Name | Description | Default Value |
---|---|---|
inReportID | The VReport instance. | |
inType | vReport print type (vReport printing formats). | |
inStartIndex | Start page index. | 0 |
inEndIndex | End page index. | 0 |
Description
Prints VReport to the string.
Return Values
Return string value.
Examples
Example 1.
<?php $vproject_id = vproject_create( $conn_id, $report_file ); // Get first Report $report_id = vproject_make_new_report( $vproject_id, 1, $conn_id, "SELECT * FROM T1" ); $res = vreport_print_to_buffer( $report_id, 4 ); vreport_close( $report_id ); vproject_close( $vproject_id ); ?>