set_style_name

 
          set_style_name(string $style_name)  
This is one of the appearance customization methods supported in Smart Report Engine. It sets the style of your report which can be "blue", "grey", "teal", or "mobile". Please be aware that your users can change the report's style from within the report.
# This method is available in both the community edition and the commercial edition .

# Parameters

Parameter Description
$style_nameOne of "blue", "grey", "teal" or "mobile".

# Returns

This method returns the calling object, so it can be chained with other methods in the ‘ReportOptions’ class

# Code Example

 
           try{
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
       ->set_style_name("grey")
       ->select_all_fields();
$engine = new CustomEngine($report);
$report_path = $engine->create_report();
echo "Your report URL:" . $report_path;
} catch (Exception $ex) {
   echo 'Caught exception message:  '.  $ex->getMessage();
}