<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Open The Report</b> button to trigger the
<code>loadingreportfile</code> event.
</p>
<p>
After successfully loading the report, the
<code>reportfilecancelled</code> event is triggered and outputs the message
under the component.
</p>
<p>
If there are any issues when loading the report, the
<code>reportfileerror</code> event is triggered and outputs the error
message under the component.
</p>
</div>
<button onclick="openReport()">Open the report</button>
<div id="pivot-container"></div>
<div class="output" id="output">Output will appear here</div>