Switch to: V11V10V9V8V7V6V5

vreport_preview_height()

Declaration

vreport_preview_height( 
  vint32  inVReportID,
  [int    inPixelHeight] )

Parameters

Name Description Default Value
inReportID The VReport instance.
inPixelHeight Preview height in pixels.

Description

Set preview-height value to the vReport if inPixelHeight specified and get it otherwise.

Return Values

Return Int 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" );
 
        vreport_preview_height( $report_id, 100 );
 
	vreport_close( $report_id );
	vproject_close( $vproject_id );
?>