<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Print</b> button to trigger the <code>printstart</code> event
that outputs the message under the component. When the OS print manager is
closed, the <code>printcomplete</code> event is triggered.
</p>
<p>
Click the <b>Export</b> button to trigger the <code>exportstart</code> event
that outputs the message under the component. When the export is complete,
the <code>exportcomplete</code> event is triggered.
</p>
</div>
<button onclick="printGrid()">Print</button>
<button onclick="exportGrid()">Export</button>
<div id="pivot-container">The component will appear here</div>
<div class="output" id="output">Output will appear here</div>