<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Open</b> button to trigger the
<code>openingreportfile</code> event that outputs the message under the
component.
</p>
<p>
Click the <b>Cancel</b> button in the Open file dialog to trigger the
<code>reportfilecancelled</code> event that outputs the message under the
component.
</p>
</div>
<button onclick="openReport()">Open</button>
<div id="pivot-container"></div>
<div class="output" id="output">Output will appear here</div>