Jaya Prakash

Jaya Prakash

  • 546
  • 2.3k
  • 64.9k

how to Export Modal Popup Data into the Pdf or doc

Mar 21 2023 7:29 AM

i can able to print the modal popup data i dont want this when i click on export button  directly downld to either pdf or doc format how to do it

this is my code for print written in js

<script  language="javascript">

    function CallPrint(strid) {
        var conTent = document.getElementById(strid);
        var winprint = (window.open(",", 'left=0,top=0,width=1,height=1,toolbar=0,scrollbar=0,starts=0'));
        winprint.document.write(conTent.innerHTML);
        winprint.document.close();
        winprint.focus();
        winprint.print();
        conTent.innerHTML = stroldone;
    }
</script>
<div id="divPrint">
    <asp:Button ID="btnDwnld" runat="server" Text="Export" OnClientClick="javascript:CallPrint('divPrint');" />
</div>

 


Answers (1)