could i just Print an div like an PDF without Export it

1 Answer 107 Views
General Discussions
Masip
Top achievements
Rank 1
Iron
Masip asked on 11 Jan 2022, 07:30 AM | edited on 11 Jan 2022, 07:30 AM

Hi,

 

Could i only print an Div on not export it to a PDF file ?

I just want open print dialog

Regards

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 13 Jan 2022, 10:58 AM

Hello Masip,

I am not sure that I understand correctly the questions, but the developer can open the default browser print dialog by using JavaScript window.print() method:

https://developer.mozilla.org/en-US/docs/Web/API/Window/print

The following StackOverflow thread could be found helpful as well:

https://stackoverflow.com/questions/242182/how-can-i-pop-up-a-print-dialog-box-using-javascript

Regarding the Kendo UI for Angular PDFExport component, it exports every content that is placed in between the <kendo-pdf-export> tags to a PDF document.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Masip
Top achievements
Rank 1
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or