Announcement

Collapse
No announcement yet.

Anybody Know Why This Show Error when i place into Blank APP in SC9 !!!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Anybody Know Why This Show Error when i place into Blank APP in SC9 !!!

    <?php
    require_once 'stimulsoft/helper.php';
    ?>

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Stimulsoft Reports.PHP - JS Report Viewer</title>

    <!-- Report Office2013 style -->
    <link href="css/stimulsoft.viewer.office2013.whiteteal.css" rel="stylesheet">

    <!-- Stimusloft Reports.JS -->
    <script src="scripts/stimulsoft.reports.js" type="text/javascript"></script>
    <script src="scripts/stimulsoft.viewer.js" type="text/javascript"></script>

    <?php
    $options = StiHelper::createOptions();
    $options->handler = "handler.php";
    $options->timeout = 30;
    StiHelper::initialize($options);
    ?>
    <script type="text/javascript">
    var options = new Stimulsoft.Viewer.StiViewerOptions();
    options.appearance.fullScreenMode = true;
    options.toolbar.showSendEmailButton = true;

    var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);

    // Process SQL data source
    viewer.onBeginProcessData = function (event, callback) {
    <?php StiHelper::createHandler(); ?>
    }

    // Manage export settings on the server side
    viewer.onBeginExportReport = function (args) {
    <?php //StiHelper::createHandler(); ?>
    //args.fileName = "MyReportName";
    }

    // Process exported report file on the server side
    /*viewer.onEndExportReport = function (event) {
    event.preventDefault = true; // Prevent client default event handler (save the exported report as a file)
    <?php StiHelper::createHandler(); ?>
    }*/

    // Send exported report to Email
    viewer.onEmailReport = function (event) {
    <?php StiHelper::createHandler(); ?>
    }

    // Load and show report
    var report = new Stimulsoft.Report.StiReport();
    report.loadFile("reports/tr_masuk.mrt");
    report.setVariable("id", "20170929090508283203");
    viewer.report = report;
    viewer.renderHtml("viewerContent");
    </script>
    </head>
    <body>
    <div id="viewerContent"></div>
    </body>
    </html>
Working...
X