The monthly calendar supports direct printing of the current view.
JavaScript
Example
<div id="dp"></div>
<div class="space">
Format:
<select id="format">
<option value="svg">SVG</option>
<option value="png">PNG</option>
</select>
</div>
<div class="space">
<a href="#" id="print-button">Print</a>
</div>
<div id="export"></div>
<script type="text/javascript">
var dp = new DayPilot.Month("dp");
// ...
dp.init();
$(document).ready(function() {
$("#print-button").click(function(ev) {
ev.preventDefault();
var format = $("#format").val();
dp.exportAs(format).print();
});
});
</script>
DayPilot