Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Print form #7196


User avatar
0
palco.ps created

Dear,

How can i print this form when i click on button ??


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    You need to write some JavaScript code to print that window. You can take a look at this sample https://codepen.io/designify-me/pen/gMMepB.

    This is just a sample I have found when I Google how to do this, you can find better implementations.

  • User Avatar
    0
    jdavis01 created

    Here is how I solved this issue for me.. Seems a bit hacky, but working on a better solution

    https://support.aspnetzero.com/QA/Questions/7192

  • User Avatar
    0
    alper created
    Support Team

    Alternatively, you can use CSS to change the appearance of your web page when it's printed on a paper. You can specify one font for the screen version and another for the print version, hide specific items. https://www.smashingmagazine.com/2011/11/how-to-set-up-a-print-style-sheet/

  • User Avatar
    1
    causalnexus created

    Have a look at https://stackblitz.com/github/IdanCo/angular-print-service?file=src/app/app-routing.module.ts

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @causalnexus :)