Table of Contents
vreport_preview_width()
Declaration
vreport_preview_width( vint32 inVReportID, [int inPixelWidth] )
Parameters
Name | Description | Default Value |
---|---|---|
inReportID | The VReport instance. | |
inPixelWidth | Width in pixels. |
Description
Set width for preview to the vReport if inPixelWidth specified and get it otherwise.
Return Values
Return nothing.
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_width( $report_id, 50 ); vreport_close( $report_id ); vproject_close( $vproject_id ); ?>