Switch to: V11V10V9V8V7V6V5

vreport_print_to_disk()

Declaration

vreport_print_to_disk( 
  vint32  inVReportID,
  string  inPath,
  int     inType,
  [int    inStartIndex [,
   int    inEndIndex]] )

Parameters

Name Description Default Value
inReportID The VReport instance.
inPath Path to the output file.
inType vReport print type (vReport printing formats).
inStartIndex Start page index. 0
inEndIndex End page index. 0

Description

Prints VReport to the file.

Return Values

No return 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_disk( $report_id, "~/Documents/vReport1.html", 4 );
 
	vreport_close( $report_id );
	vproject_close( $vproject_id );
?>