The viewer has an ability to invoke the report designer. The Design button located on the viewer toolbox panel is intended for this. This button is disabled by default. To use this ability you should set the showDesignButton property in the true value and define the onDesignReport event.

 

viewer.php

 

<?php

$options = new \Stimulsoft\Viewer\StiViewerOptions();

$options->toolbar->showDesignButton = true;

 

$viewer = new \Stimulsoft\Viewer\StiViewer();

$viewer->onDesignReport = 'onDesignReport';

$viewer->renderHtml();

?>

 

function onDesignReport(args) {

window.open("designer.php?fileName=" + args.fileName);

}

 

 

 

You can find a detailed description of available argument values in the Viewer Events chapter.

 

Information

 

The viewer doesn't run the designer, it just invokes the specified event and transfers it as arguments of file name and a viewed report. In the event you can redirect to the PHP page, where the report designer is located.