If I use Print.js library to print my div like this:
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="document-editor" runat="server">
<div class="document-editor__toolbar"></div>
<div class="document-editor__editable-container">
<div class="document-editor__editable" id="editor1" runat="server">
</div>
</div>
</div>
<input type="button" onclick="printJS({
printable: 'ContentPlaceHolder1_editor1', type: 'html', css: ['CSS/StatementVerifacation.css'], scanStyles:false})" value="Print" />
<script>
DecoupledEditor
.create(document.querySelector('.document-editor__editable'), {
})
.then(editor => {
window.editor = editor;
$("#ContentPlaceHolder1_editor1").addClass("disabledbutton");
})
.catch(err => {
console.error(err);
});
</asp:Content>
I want to track the number of prints
,
My question is how to disable the browser printing dialog to count the number of prints through counting the number of clicks on my print button,or at least track the number of printing copies in the browser printing dialog window?