Issue
I am working on this requirement where I need to display contents using pagination and print all content at once by a single click on print button.The problem I am facing right now is that when I click on print it creates print preview option for me which I don't want .
I used angularUtils.directives.dirPagination
for pagination.
the pagination looks something like this : (http://plnkr.co/edit/xmjmIId0c9Glh5QH97xz?p=preview)
Solution
As my aim was to export the data that I fetched from server and then previewed it in form of pagination. So instead of exporting the whole pagination Template I simply created a new div with the desired layout that I wanted in my pdf file and added css to make it hidden. After that to get rid of my print preview option issue I used this JQuery plugin .
Answered By - Avinash Sharma
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.