Solved

Right aligning numbers in export to PDF and Print page number

Posted on 2016-11-14
4
76 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

739 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