PRINT PROBLEM

Total Post:2

Points:14
HTML5  J2EE 
XML
 720  View(s)
Ratings:
Rate this:

Hello

I have a web application all walks. I will like to print my form html on preprint. I do research but I can not find any relief.

Please help me

  1. Post:2

    Points:14
    Re: PRINT PROBLEM

    hello

    please helpe me

  1. Post:281

    Points:2003
    Re: PRINT PROBLEM

    Hi RACHOULA OUEDRAOGO,

    in which type you want to print HTML form by using reporting tools like Rdlc Reporting, Crystal Reporting or directly Html.


      Modified On Oct-16-2018 06:31:55 AM
  1. Post:2

    Points:30
    Re: PRINT PROBLEM

    Hi RACHOULA,

                            Please put following line of code in your html page to achieve your task.

    <script>
            function printWindow() {
                window.print();
            }
    </script>

    And Call this method on your button click.

    I have attached complete demo code for your help:

    <html>
    <head>Print Current Page</head>
    <body>
        <p>On Button Click Print this Page</p>
        <button id="printButton" onclick="printWindow()">Print</button>
        <script>
            function printWindow() {
                window.print();
            }
        </script>
    </body>
    </html>

    I hope it's informative...

      Modified On Oct-16-2018 06:49:00 AM
  1. Post:2

    Points:14
    Re: PRINT PROBLEM

    I want to print with iRepport or crystal

    can you help me please??

Answer