Follow

Open report from file on server in PHP

Add next handle in designer.php file:

JavaScript
designer.onOpenReport = function (event) {

	//show custom open report dialog

	var callback = function (args){
		var report = new Stimulsoft.Report.StiReport();
		var obj = JSON.parse(args);
		report.load(obj.report);
		designer.report = report;

	}
	<?php StiHelper::createHandler(); ?>
}

Load report template on server-side from file or database. This code should be added in handler.php file:

PHP
$handler->onOpenReport = function ($event) {
   
    $result = StiResult::success();

    $result->report = file_get_contents("reports\SimpleList.mrt");
    return $result;
};

0 Comments

Please sign in to leave a comment.
Powered by Zendesk