Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
ultrawebgrid to be print
posted

i want the ultrawebgrid to be print when i click a button

Parents
No Data
Reply
  • 8160
    posted

    Hello devakumari,

    The best would be to use WebGridExcelExporter or WebGridDocumentExporter and to export the grid before print.

    However it is possible to print the page with javascript function window.print().
    <input type="button" value="Print this page" onClick="window.print()">


    This will require additional effort. When you print webpages they are printed not very well. The reason is that CSS properties are designed for certain media.

    That’s mean that you have to create additional css for printing.

     

    For example:

      @media print {

        body { font-size: 10pt }

      }

      @media screen {

        body { font-size: 13px }

      }

      @media screen, print {

        body { line-height: 1.2 }

      }

     

    For more information please refer to this link: http://www.w3.org/TR/CSS2/media.html

Children
No Data