Solved

Right aligning numbers in export to PDF and Print page number

Posted on 2016-11-14
4
55 Views
Last Modified: 2017-01-25
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
ID: 41887147
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
ID: 41888643
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
ID: 41888691
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
ID: 41888698
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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)

821 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