Solved

Right aligning numbers in export to PDF and Print page number

Posted on 2016-11-14
4
15 Views
Last Modified: 2016-11-16
With Datatable export,  I have managed to activate print and PDF button

When printing and export to PDF, how can I

1) Right justify a numeric column
2) Print page number on the footer ?
0
Comment
Question by:Errol Farro
  • 3
4 Comments
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
do you need help or someone to do the wokr for you.
no offense, it's just about the way you write your question :)
you should split it at least split it

you may use @media print to create a specific stylesheet for your pdf
for the page number on the page, I see it by default on browser, why do you need one more time, thanks ?
0
 

Author Comment

by:Errol Farro
Comment Utility
I just need an example on how to Right justify a numeric column when exporting to PDF. In addition, I need an exampole on how to print page numbers when exporting the jquery datatable to pdf
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Why do you need to add page number when you already have them when printing ?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
to right align here some exampel to customize a stylesheet for your prints :
https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Exemples
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now